Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Exit Event Processing Problem

on the event page below i cant the the choice menu to exit, it just gets stuck in a loop.  any ideas about what im doing wrong?

hmm, it wont let me paste the code...

anyway, what it is, is a choice menu within a choice menu

ive got "More..." on the first show choices event that goes to another set of choices.  on the second set theres a "Go back..." that has an "Exit Event Processing" event.  while play testing, it will take me back to the first set, but when i hit the "Nevermind" choiceon the first set, which has an "Exit Event Processing" event tied to it, it just keeps taking me back to the first set of choices.  I even have both sets branched with an "Exit Event Processing" event in the "When Cancel" area.

is there a command that will close all windows?
 
Is one of your events perchance a parallel/autorun process? that could explain it
*goes to test your system to make sure*
EDIT: well, if you DO have it as a parallel/autorun process, there's a simple fix. Instead of exit event processing on "Nevermind" use a self switch. i.e. set self switch A on when you choose nevermind. Then you make a second event page with absolutely nothing changed to it EXCEPT that it needs self switch A to be on
 
they are parallel processes.  would you mind going into a little more detail?  i understand setting the self switch a to on for the nevermind option, but after that it gets kinda fuzzy...  lol, ive only had this program about a week, im still learning : P
 
Alright, basically, the events window has a "conditions" section in the top left. There you can determine what is needed for the event to run. One of those options is self switches.
Another property of events is that, if you have more than 1 event page (click "New event page" to make a new one duh :P) the highest page number with all its conditions satisfied will run when the event is in use.
i.e page one has no conditions, page two has no conditions, page two will run.
Using this, when you set self switch A on you can stop the event from doing anything by going to a second event page and making a condition saying "Self switch A is on"
If you put nothing in the event, and just make it run with "action button" the event will never do anything.

On a sidenote, if you don't want to completely disable the event when you press nevermind, you can always add a command on the page that needs self switch A on, that turns self switch A OFF again, so that the first event page runs again...lol
If you need more explanation I'll post you up a screenshot ;)
 
Here's a screenshot of how I set things up (I made it a jpeg, so it's only a few kb ;))
http://img396.imageshack.us/img396/8817/projectilesystemattemptag5.jpg[/img]
 
oh! instead of putting a show choice menu within the first show choice menu, you put the second one on a seperate page!!  (it took me a day of re-reading it to figure that out )  woot! it works : ) ty!

quick question about switches.  ive read all the tutorials i can get my hands on about them, but... a self switch is the same thing as a control switch except for it can only be used within the current event, right? (that and there are only 4 of them available)  and a control switch can be activated outside of the current event, right?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top