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

Little Paw

Veteran
Veteran
Joined
May 5, 2013
Messages
707
Reaction score
294
First Language
English
Primarily Uses
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).

 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Little Paw

Veteran
Veteran
Joined
May 5, 2013
Messages
707
Reaction score
294
First Language
English
Primarily Uses
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

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

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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.

Forum statistics

Threads
105,868
Messages
1,017,081
Members
137,582
Latest member
Spartacraft
Top