im making a game, but each time i try and make a menu it goes very wrong!
it shows the character at the main menu and it can move around and stuff!
i want it so the character doesn't start until the game starts!
help?
Offline
Try using this script for the character:
when gf clicked set [Game started v] to (0) hide wait (0.1) secs //A delay is needed. wait until <(Game started) = (1)> showInstead of using this block...
broadcast [Game start v]... Create a variable called "Game started" and replace the other block with this one:
set [Game started v] to (1)And if you don't want the character to be controlled, add this to every key command:
when ["Your Key" v] key pressed if <(Game started) = (0)> stop script else "Your command"Alternate control:
when gf clicked forever wait until <key ["Your Key" v] pressed?> if <(Game started) = (0)> stop script else "Your command"Hope it helps!
Last edited by BLU_Spy (2013-01-11 18:56:59)
Offline
i have loads of games with main menus, pick one and look at the code, it involves using a "mode" variable and setting a button to only show if that variable is set to "mainmenu" else hide.
Offline
Although BLU_Spy's idea will work, Tbtemplex97's idea is more flexible and efficient. I suggest you use that.
Offline