I have a fight in my game and it's supossed to use images. Theres a phase where you need to press space repetitively to flee from an attack. I've tried with some weird thing and it didn't work, what's the proper way to do this?
How could I create a "Press SPACE repetitively" system?
RPG Maker MZ SupportYou would use a plugin for timed hits/quicktime events in battle.
This tutorial shows how to do it with VisuStella Action Sequences
mauigamestudio.com
This tutorial shows how to do it with VisuStella Action Sequences
RPG Maker MV, MZ Timed Battle Events + Skills – Maui Game Studio
mauigamestudio.com
It's not really a battle from the engine, it's just a custom system made by pressing buttons
If it's not in a battle scene it is on the map, right? You would still use quicktime events or event it with timers and parallel events checking for button presses before the timer runs out
Kinda, it's on the map but the stuff is displayed as images
And it's been so long I don't use rpg maker and I'm dumb
For future reference: you've tried "some weird thing" that "didn't work"...those phrases tell us basically nothing. What did you try? What did you want to happen? What actually happened? There are various ways this can be done.
If it's on the map, you could use an event with Action Button trigger in front of the player. You could block them in using (invisible) events and lock their facing direction using Direction Fix in a move route. Then every press of the action button (e.g. space) should activate that event. 👋
Alternatively you could use an event-based QTE ("Quick Time Event") setup, with a loop that checks which button is pressed each frame and reacts appropriately. This tutorial describes a way to set up an Autorun-type QTE sequence:
forums.rpgmakerweb.com
...or you can look for a suitable plugin.
This thread mentions some "button mash" approaches:
forums.rpgmakerweb.com
If it's on the map, you could use an event with Action Button trigger in front of the player. You could block them in using (invisible) events and lock their facing direction using Direction Fix in a move route. Then every press of the action button (e.g. space) should activate that event. 👋
Alternatively you could use an event-based QTE ("Quick Time Event") setup, with a loop that checks which button is pressed each frame and reacts appropriately. This tutorial describes a way to set up an Autorun-type QTE sequence:
Tutorial-Blog - Eventing a QTE: Time Hits Minigame
by: @hiddenone Read the Tutorial Here!
forums.rpgmakerweb.com
This thread mentions some "button mash" approaches:
Need Help with Button Mashing Event
I know I have posted a help thread before, but I got nothing, so yeah :D I am trying to make an event where the player has to spam a button in order to open a door or else they will die. To be more specific: Spam Ok 20 times or gameover. Can anyone show me a script for this? Thanks :)
forums.rpgmakerweb.com
Yeah I was excepting that thing of I didn't specify the weird thing, but I basically put random related codes trying to make it work but I didn't do pretty much. And I don't know if I could use the action button trigger because the thing will begin when you touch a moving enemy, but I'll see the links
Well, I just whipped this up and tested it but Caethyril beat me to it.
This may seem obvious to you but just in case you aren't aware you can use a very simple event if you don't mind using a different key. Just use a conditional branch and click the button option on the fourth tab. You got multiple buttons to choose from but no shift 😛.
Thank you! It works now, but is there a way to Succeed right after you press X times instead of having to wait?
It's already written that way. As soon as you press ok 10 times it says escape succesful.
Well I sometimes spamclick and it doesn't do anything, or even it takes more time than the desired
Mouse click is a different trigger script. You would change Input.isTriggered('ok') to TouchInput.isTriggered()
I didn't mean the mouse, I was just pressing enter
Then there is something wrong with how you copied or implemented the code, or you are pressing the wrong button, because I did test several times before posting it.
Post a screencap of how you implemented it in your project.
(and the end at the end of the second)
You need to change the trigger on your first event to touch.
You also might want to put your Erase Picture commands before you turn off the switch
These weren't really problems, I still need to wait until the timer finishes and it leasts more than 5 secondss
You are not starting the common event in the first place because your trigger to turn on the switch for the common event is an invisible event below the player that the player needs to interact with to start.
Also, every time you interact with that tile you are restarting the timer
Nevermind it works now
Original thread: https://forums.rpgmakerweb.com/threads/how-could-i-create-a-press-space-repetitively-system.159489/