Posts | ||
---|---|---|
What type of code/script would be best for menu selections? | Locked | |
Thread Options | ||
Mar 17 2014 Anchor | ||
I need someone to help me. I need a script for my Main Menu. A button script that will lead you to the game and one that will exit out of it. |
||
Mar 17 2014 Anchor | ||
Divide the game into states. The menu really just has to change the state the game is in, and do any house cleaning to make sure the transitions are smooth. Being in the menu should be its own state. -- All posts are phase shifted and routed through the main deflector dish for quality assurance purposes. |
||
Mar 25 2014 Anchor | ||
masternerdguy has the right idea. I use an enumerated type for my different 'gameStates', for example. |
||
Mar 28 2014 Anchor | ||
If your engine utilizes a loop system, simply loop the entire game, then loop a main menu function inside of the game loop before anything else. When play is clicked, exit main menu loop and continue main game loop. In the event the game is exited, end both the main menu loop and the main game loop. This is what I've done mostly for games utilizing python libraries. |
Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.