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.

Need help looping a conditional branch event.

Okay, I'm trying to build an event where you can step on it, and depending what button you press, the event can go different ways.

I've got it set up, but I can't figure out one problem. If I don't loop the event, it will run through it once, so if I'm standing on the event and decide to press "A",
it's to late, as the event has already run through. The only way I could do it is if
I was pressing A when I stepped on the event.
If I set it to loop, it gets caught running that conditional branch infinitely.

How can I make it so that I can step on the event, and THEN click a button?
 
Have a parallel processing event and make it do the following:

Set variable playerX to player's map X.
Set variable playerY to player's map Y.
Conditional branch: If player's map X = (the event's map X - can input manually or use another variable to set it to the appropriate event's x)
^Inside the above conditional branch, make another one corresponding to the player's map Y to match the right map Y value for the event.
Then inside that one, make a conditional branch of button _ being pressed, and have your commands there.

:>
 

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