How to make an event that checks for button press after the event starts?

I want to make an event that, when you step on the tile, it causes a balloon icon to pop up, basically notifying you that a secret is there. Then, I want you to be able to press the confirm button on that tile to initiate the rest of the event (dialog and some variables and switches, in this case).

Problem is, the pop up works okay, but if you press the confirm button while already standing on the tile, it doesn't work. You have to actually be holding the button down when you step onto the tile to initiate the rest of the event.

Here's the start of the event (the rest is just dialog and stuff, and then no else case for the branch).

MnuV5JH.png
You're thinking too much 🙂


That won't work because it looks for the button being pressed at that exact time. It doesn't loop, so if it's not pressed RIGHT then and you press it a second later, nothing will happen.


If it's something you won't SEE, set the event's priority to Below Characters and the trigger to Player Touch.


Then in the event commands, after the balloon icon, just do a Show Text command. Don't put any text, set the background to be transparent, and the location at the bottom of the screen. Then put the dialogue after that.


It'll show the balloon icon, then wait for the player to hit space/enter before continuing.
You're thinking too much 🙂

That won't work because it looks for the button being pressed at that exact time. It doesn't loop, so if it's not pressed RIGHT then and you press it a second later, nothing will happen.

If it's something you won't SEE, set the event's priority to Below Characters and the trigger to Player Touch.

Then in the event commands, after the balloon icon, just do a Show Text command. Don't put any text, set the background to be transparent, and the location at the bottom of the screen. Then put the dialogue after that.

It'll show the balloon icon, then wait for the player to hit space/enter before continuing.
Well... that would work, except I want the player to be able to actually walk away from it.
So you want them to be able to walk away from the tile, then come back and stand on it again, press the confirm button, and THEN the rest happens?


Then just turn on a self switch after the balloon icon, and add a new page conditioned by the self switch with an Action Button trigger.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-event-that-checks-for-button-press-after-the-event-starts.21963/