Help with Button press event?

I'd like to set up an event that is similar to a playing part like in Indigo Prophecy , or Heavy Rain, where instead of controlling the player you have to press buttons in time where they tell you to press, and if you succeed then you continue in the cycle till the end. If you fail though you are taken back to the beginning and try again.

I've tried this before with conditional branches but I've only got it to work partly. But not the way I want it to work. Please help! I need to know how to set this up properly.
Please post screenshots of the events you have so far, then we can tell you where you went wrong.


Basically the conditional branch only checks if the button is pressed in that specific frame, which means that you need to place the CB into a loop or a parallel process. However, you need the main system to react independently to the button press, and that means it cannot contain the loop itself - you need to split that in two different events that check each other through switches.


For more details, we'll have to see what you have so far - too much depends on what exactly you want to be able to give you a finished solution.
Please post screenshots of the events you have so far, then we can tell you where you went wrong.


Basically the conditional branch only checks if the button is pressed in that specific frame, which means that you need to place the CB into a loop or a parallel process. However, you need the main system to react independently to the button press, and that means it cannot contain the loop itself - you need to split that in two different events that check each other through switches.


For more details, we'll have to see what you have so far - too much depends on what exactly you want to be able to give you a finished solution.


This is what I have so far, I thought that putting labels would help if I wanted the player to try to press the button again but I'm thinking of scraping that idea. I want it so that when a certain time frame ends it just goes onto the next text that tells you which button to press. Think of Dance dance revolution, if you miss a hit you miss a point and so on.

But what ends up happening is the text goes through like it's suppose to, but whenever I try to press a button it doesn't actually do anything. I think that when the conditional branch is there it doesn't give the player enough time to actually press a button, but I can't set another timer because I'm already using it for something else for this event. I'm using two plugins here, one for text show and one for the enabled keyboard use. The show picture is just another use to let me know what part in the event I'm at.

Also, at the end I have a switch that turns to another page so the event doesn't loop again. And at the end it takes what points you gathered depending on how many buttons you pressed correctly and randoms them so the more you have the higher chance you have at winning. 

Preview 4.PNG

Original thread: https://forums.rpgmakerweb.com/threads/help-with-button-press-event.57253/