Is there a way to make it so that a player absolutely can't move at all? I want to have a scene where a button must be mashed in order to get away from something, but I can't see a way to make it so that the player can't just keep moving on. The wait command wouldn't work, because it wouldn't register the button presses until afterwards. Any ideas?
Freeze Player Movement?
RPG Maker VXAce SupportTry changing the event that checks for button mashing to an autorun event. I'm not actually sure if this will work. Autorun stops the player controlling the character.
Don't put your check into a loop, as autorun events loop by default.
Don't put your check into a loop, as autorun events loop by default.
I'm pretty sure autorunning an event stops the player in his tracks. But you should ask someone who's better at eventing, such as... someone who isn't me, haha.
I will third their suggestions... use an autorun for the checking (maybe with a few frames wait or none)... since autorun stops player movement and it loops by default, it will solve your problem... 🙂
Well, the event that would cause such button mashing is supposed to be a trigger, not an autorun. Basically, if said thing is chasing you and catches up with you. Let me try and sum this up in a simple manner:
A dude is chasing you. I want it to be so that if he catches up with you, you're unable to move until you hit spacebar enough times.
I've already got the thing for the button mash taken care of. But what I need is to freeze the player until certain amount of button input has been made, and of course, make a condition for failure of the player to do so. An autorun event..i'm having trouble seeing how this would work.
I also searched the RPG Maker VX Ace scripts list and found nothing helpful. I think I would compare what i'm looking to similar button mash scenes like in Paranoiac. Like when the monster grabs your foot at the piano scene. Except it's set to a button input rather than a choice selection.
http://www.youtube.com/watch?feature=player_detailpage&v=N0mbnaURIPM#t=828
A dude is chasing you. I want it to be so that if he catches up with you, you're unable to move until you hit spacebar enough times.
I've already got the thing for the button mash taken care of. But what I need is to freeze the player until certain amount of button input has been made, and of course, make a condition for failure of the player to do so. An autorun event..i'm having trouble seeing how this would work.
I also searched the RPG Maker VX Ace scripts list and found nothing helpful. I think I would compare what i'm looking to similar button mash scenes like in Paranoiac. Like when the monster grabs your foot at the piano scene. Except it's set to a button input rather than a choice selection.
http://www.youtube.com/watch?feature=player_detailpage&v=N0mbnaURIPM#t=828
self-switches and event pages... the first page which follows you is a trigger based event, then once it triggers, you use self switches to switch to the autorun page... then in the autorun page, you simply check if the button is pressed, increase a variable, then check if the variable equals some amount, if it is then either erase event or switch pages again depending on what you need to do... then you can also count frames in another variable so that if the button mash variable don't get to the certain amount once the frame count variable reaches a certain amount, you can do consequences
Started trying to use autoruns for it, and once the first autorun event page starts, lockup. *sigh*
what lock up? oh wait... you might just wanna loop a text box that shows nothing and uses transparent window... though that means you will be checking for accept button and not space bar...
I'm lost. If someone could produce an example and either make pictures or zip up a demo for me, that would help. Because i'm quite le stuck. I always did do better with visual aids D:
if you're fine with using accept button instead of spacebar
right after you get touched by the event (without switching event pages really)
loop
Show text: (no text, transparent background)
Control Variables: [001] += 1
Conditional branch: Variable [001] == 10
Go to label: pressed
else
end
end loop
label: pressed
though if you want to have consequences if he didn't manage to do it on time, you'd need to have probably another event that runs on parallel process and is activated (switches) before the loop, which waits for the time limit, then does something else (and maybe disable the button masher (switches + another event page on the mash event)... then if he managed to press, just disable the switch to disable the timer event...
right after you get touched by the event (without switching event pages really)
loop
Show text: (no text, transparent background)
Control Variables: [001] += 1
Conditional branch: Variable [001] == 10
Go to label: pressed
else
end
end loop
label: pressed
though if you want to have consequences if he didn't manage to do it on time, you'd need to have probably another event that runs on parallel process and is activated (switches) before the loop, which waits for the time limit, then does something else (and maybe disable the button masher (switches + another event page on the mash event)... then if he managed to press, just disable the switch to disable the timer event...
Say, for putting consequence for failure in, wouldn't changing the textbox and putting in some text wait code and a no input code into the textbox work? I.E:
Text: \|\|\^
EDIT: I have something that almost works, but it's not button mash, and the player can't move afterward, win or lose.
EDIT 2: Alright, I think I got it. There's just one more problem. Letting the event catch up with the player doesn't trigger it. It's more like the player has to use the directional buttons to move into the triggering event. And yes, the trigger is event touch.
Text: \|\|\^
EDIT: I have something that almost works, but it's not button mash, and the player can't move afterward, win or lose.
EDIT 2: Alright, I think I got it. There's just one more problem. Letting the event catch up with the player doesn't trigger it. It's more like the player has to use the directional buttons to move into the triggering event. And yes, the trigger is event touch.
You can set the movement route for the player to wait for however long you need them to, as long as you don't wait for completion
Why wake a 7 years old zombie.
Necro-post notice: @Koifish_Coyote
Congratulations on making possibly the longest necropost in the forum's history. The OP's question was answered 7 years ago. Given that they haven't bumped in all that time, I'm guessing didn't need any more help 😉
Congratulations on making possibly the longest necropost in the forum's history. The OP's question was answered 7 years ago. Given that they haven't bumped in all that time, I'm guessing didn't need any more help 😉
Original thread: https://forums.rpgmakerweb.com/threads/freeze-player-movement.21743/