button mashing event help

hello! I would like some help with this, this is what i need to do but i cant figure out how to do it

a player walks to a tile and triggers a event, a image is shown on the screen (for an example a close up of the player getting attacked by someone, that is what the image is showing) and the player has to mash a button (space) in a certain amount of time to struggle free, and a indicator in the upper corner of the screen shows if the button is being pressed or not (lets say for example a red circle for not pressed and a green circle if it is pressed), can anyone help me with this?

I am a beginner so I would like simple explanation, thank you
You can use this:

Simply download the project, and copy paste the events, common events, variables, (and anything else) to your game.
its a good plug-in but can it do what I have explained?
Yes. There is a video that shows how it looks likes. And you can download the project attached there, open it up and see what it looks and plays like.
And it is not a plug-in. It's made through events.
i see, thank you for the help
now that I have looked through it and spent some time on it, this isint exactly what i was looking for, this is good but its not exactly what I want, thank you so much for trying though and i appreciate it!
Ah, I see. Then perhaps someone else can offer a different suggestion. :LZSsmile:

I'm closing this thread because there's a duplicate thread asking for exactly the same thing here:


https://forums.rpgmakerweb.com/index.php?threads/button-mashing-event-help.130574/#post-1142122

Original thread: https://forums.rpgmakerweb.com/threads/button-mashing-event-help.130556/