Closing Choice Menu

Mannis

Writer
Member
Joined
Mar 1, 2016
Messages
4
Reaction score
0
First Language
English
Primarily Uses
Hey everyone,


I'm looking for a way to close choice menus without the user having to choose an option. Basically, the player has ten seconds to choose an option, should they not the time will expire and the game will present them with Game Over. My problem is that the choice menu is preventing the game from automatically going to Game Over when the time expires. I've looked everywhere for a solution, but I've failed with it so far.


Help would be greatly appreciated, thank you :)
 

ZServ

Veteran
Veteran
Joined
Jun 16, 2014
Messages
260
Reaction score
71
Primarily Uses
Mmmmm, not positive if it would work, but try this:


Parallel process common event. Activated by a switch, let's call it "ChooseOrDie." So, essentially, the engine renders at 60FPS, so 60 frames is one second. 60 (1 second) times 10 (target amount of seconds) is 600, so we want to have a wait command in this common event that will wait 600 seconds, then call the game over screen. Then, before you draw the text window that will pose the question (do you want to go to the mall?), you'll turn the ChooseOrDie switch on, and call that common event. Then, in each choice branch, you'll turn OFF that ChooseOrDie switch. Since the switch is no longer on, the parallel process should hypothetically just stop what it's doing. If, for whatever reason, it doesn't, then after the wait command, make a conditional branch that checks if ChooseOrDie is on, and if so, call game over, if not, do nothing.


A much more complicated (but more accurate) version would use script calls to check the system clock.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,859
Messages
1,017,030
Members
137,566
Latest member
Fl0shVS
Top