Assistance with button mash to escape!

Hello guys,

I've been working on a game where there's no combat, as there are some monsters to avoid (those default little slimes, yep)
I am trying to make it that if the player gets touched by it he needs to smash the button in order to escape. Maybe add a nice HUD graphics to it as to how much he has progressed as he is "smashing" the buttons.

I have managed to make this work somehow but I don't like the approach I am using, so I have come here for ideas.
This is what I've come up with so far.

The event, (set on event touch ) approaches player, and a Autorun starts where player takes damage and screen shakes, and it sets a variable to a number 5-10 (to how many times player must press Z to escape, after meeting the number he can once again move and the autorun is turned off.

The parallel event checks if this is done correctly and it adds a small delay to the event that attacked to give the player the window to run a way, by moving the event away from player, but this delay doesn't seem to work always.

Any alternative / suggestions / ideas?
you need to show us what you have made (screenshots of the event commands and properties) before we can check for mistakes or how to improve it.
Sure, I didn't because I am not liking my approach. 🙂







Have a look. 🙂
What if you do this with a sequence of arrow buttons (directional)?
Can you provide an example? 🙂
Just like in God of War, the half-frozen scene appears on the screen for you to follow the sequence, with a time limit for pressing the key.
Yes of course I got that part, but.. how do you get to explain this to the player? Can you show me an example of coding it?
I will create a demonstration to be understandable.

But during that week, because on Monday I will be away from my computer, so I ask for a little patience. 👍
I will create a demonstration to be understandable.

But during that week, because on Monday I will be away from my computer, so I ask for a little patience. 👍
No problem, looking forward to it
Bump! Still need your help guys
This is the basis, in addition, you can create animations in different ways.

Made with events:


It may not be what you asked for, but using this foundation can do something really cool.
Imagine using Pictures for an evasion battle system, with the character in the first person or as in the perception of classic pokémon.
This is the basis, in addition, you can create animations in different ways.

Made with events:


It may not be what you asked for, but using this foundation can do something really cool.
Imagine using Pictures for an evasion battle system, with the character in the first person or as in the perception of classic pokémon.

I mean this is cool and all but it doesnt really show me how I can do it XD
But I didn't finish it, I needed to make sure it was what you needed.

If you are in compliance I will post a topic with instructions and download the demo to use directly in any game.
That would be great, looking forward to it!
I posted, but need to wait for the moderator to approve or decline the topic:

Download:
Google Drive

Good Luck
Will look into it tomorrow 🙂

Original thread: https://forums.rpgmakerweb.com/threads/assistance-with-button-mash-to-escape.134563/