FriendSized

Just the right size!
Regular
Joined
Dec 22, 2022
Messages
94
Reaction score
95
First Language
English
Primarily Uses
RMMV
If the player is pressing (and holding down) "OK" is there a way to tell the game to override that button press once a condition has been met?

I have an event running that checks if "OK" is being pressed (and held down). As long as "OK" is pressed (and held down) "1" is being subtracted from a variable until that variable = "0". Once that variable = "0" then the event should be over. For my testing I just have a text box that says "Event over".

However, since the player can just keep the "OK" button pressed (and held down) indefinitely the event will never actually end until they release the button. The "Event over" text box only appears after the player releases the button.

Is it possible to tell the game once the variable = "0" to stop recognizing / override the button being pressed (and held down) and then just end the event and display the "Event over" text?

I have a feeling this isn't possible, but I'm hoping I'm wrong.
 

AquaEcho

Script Kitty
Regular
Joined
Sep 20, 2021
Messages
1,700
Reaction score
1,168
First Language
English
Primarily Uses
RMMV
This worked for me to count up to 300 frames. Just modify it to count down from your variable instead.
 

Attachments

  • HoldButton.png
    HoldButton.png
    139.1 KB · Views: 15

FriendSized

Just the right size!
Regular
Joined
Dec 22, 2022
Messages
94
Reaction score
95
First Language
English
Primarily Uses
RMMV
That worked, thank you.
 

Latest Posts

Latest Profile Posts

I'm pretty sure me watching Netflix while having sushi just led to me eating the tail of my tempura shrimp.
1696004095642.png
...and now he even makes resources, too! xD
OMG Y'all. I found an alternate Google Drive I 100% forgot I had. All my crusty old game files from 2014 (when I signed up) are in there. When I like...maybe actually make a prototype thread it's gonna be so much fun taking everyone down my memory lane.
We are at the finish line!!! Thank you COMMUNITY!!!
GameCompletion.jpg
Well, my cat died. Just had a feeling something was off, and went to check.
Someone abandoned her a while ago when she was pregnant, and she wandered into my yard.
Took her to the vet, and did all the usual stuff, making sure she had all the shots and no one was looking for her.
She had the kittens. I kept 1, and found a home for the rest. (Continued because of the limit)

Forum statistics

Threads
134,903
Messages
1,251,749
Members
177,721
Latest member
binamshelanro
Top