Status
Not open for further replies.

Silent Darkness

Robomage
Veteran
Joined
Nov 28, 2013
Messages
2,283
Reaction score
324
First Language
English
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?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,903
Reaction score
14,999
First Language
English
Primarily Uses
RMMV
Try 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.
 

Loke

Hyperactive Art Person
Veteran
Joined
Dec 18, 2013
Messages
121
Reaction score
131
First Language
English
Primarily Uses
RMMV
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,006
First Language
Tagalog
Primarily Uses
RMVXA
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... :)
 

Silent Darkness

Robomage
Veteran
Joined
Nov 28, 2013
Messages
2,283
Reaction score
324
First Language
English
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
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,006
First Language
Tagalog
Primarily Uses
RMVXA
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
 
Last edited by a moderator:

Silent Darkness

Robomage
Veteran
Joined
Nov 28, 2013
Messages
2,283
Reaction score
324
First Language
English
Started trying to use autoruns for it, and once the first autorun event page starts, lockup. *sigh*
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,006
First Language
Tagalog
Primarily Uses
RMVXA
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...
 
Last edited by a moderator:

Silent Darkness

Robomage
Veteran
Joined
Nov 28, 2013
Messages
2,283
Reaction score
324
First Language
English
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:
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,006
First Language
Tagalog
Primarily Uses
RMVXA
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...
 

Silent Darkness

Robomage
Veteran
Joined
Nov 28, 2013
Messages
2,283
Reaction score
324
First Language
English
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.

L3d0B4t.jpg


MeF7xSe.jpg


dv7CORU.jpg


ZPgTLVC.jpg


5mY2yv5.jpg


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.
 
Last edited by a moderator:
Joined
Sep 2, 2020
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMVX
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
 

Wyrelade

Wyrelade - The one and only.
Veteran
Joined
Apr 11, 2014
Messages
72
Reaction score
26
First Language
Finnish
Primarily Uses
RMVXA
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.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,903
Reaction score
14,999
First Language
English
Primarily Uses
RMMV

@Koifish_Coyote , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.



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 ;)
 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

having anxiety during all this virus stuff is the absolute worst. I'm the only one missing out on my friend's wedding in Sept. because I can't be in large groups of people anymore due to anxiety.
Well... I just spent most of the day making something I cant even use xD

Hero_1.png
The idea was to look at the original but at a medium distance.
In hindsight, I might as well have just edited the original lol... I didn't intend for it to end up so similar.
does anyone else feel tired after completing a sprite?
Fun fact: I always lower every tileset saturation (about 15%-25% of it) in my projects.

Forum statistics

Threads
113,903
Messages
1,078,315
Members
148,001
Latest member
onurgungor
Top