Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 13,972 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how can i call a function?? #76769
06/05/06 15:10
06/05/06 15:10
Joined: May 2006
Posts: 14
Air Offline OP
Newbie
Air  Offline OP
Newbie

Joined: May 2006
Posts: 14
hello

sorry i am still newbie

i donot know how to call function

here is part of my game.wdl
Code:
 The main() function is started at game start
function main()
{
init_controls();
// set some common flags and variables
// warn_level = 2; // announce bad texture sizes and bad wdl code
tex_share = on; // map entities share their textures

// center the splash screen for non-800x600 resolutions, and display it
splashscreen.pos_x = (screen_size.x - bmap_width(splashmap))/2;
splashscreen.pos_y = (screen_size.y - bmap_height(splashmap))/2;
splashscreen.visible = on;
// wait 3 frames (for triple buffering) until it is flipped to the foreground
wait(3);

// now load the level
level_load(level_str);
// freeze the game
freeze_mode = 1;

// wait the required second, then switch the splashscreen off.
sleep(1);
splashscreen.visible = off;
bmap_purge(splashmap); // remove splashscreen from video memory

// load some global variables, like sound volume
load_status();

// display the initial message
msg_show(mission_str,10);

// initialize lens flares when edition supports flares
ifdef CAPS_FLARE;
lensflare_start();
endif;

// use the new 3rd person camera
move_view_cap = 1;

// un-freeze the game
freeze_mode = 0;

// client_move(); // for a possible multiplayer game
// call further functions here...
targetstart();
startcompass();
ismeniu();
}



so i am trying to put a menu

i have to call it main_menu_toggle

to run

but i donot know how can any one help me plz?

thanx

Re: how can i call a function?? [Re: Air] #76770
06/05/06 15:21
06/05/06 15:21
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline

Expert
aztec  Offline

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
You just want to add a function right?

call further functions here...
targetstart();
startcompass();
ismeniu()
main_menu_toggle(); }


Last edited by Star_Fox; 06/05/06 15:21.

Visit:
schwenkschuster-design.de
Re: how can i call a function?? [Re: aztec] #76771
06/06/06 09:15
06/06/06 09:15
Joined: May 2006
Posts: 14
Air Offline OP
Newbie
Air  Offline OP
Newbie

Joined: May 2006
Posts: 14
thanx alot


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1