A switch to "freeze" the player.

Hi ^_^


I'm not sure if my question is very easy or just undoable one. 


I would like to have an event with a switch, that when its "ON" the player character can't move till I turn the switch "OFF" again. That means it can't even look around too, it just freezes till I turn the switch off again. I would like to do this without using any plugins, but if it impossible otherwise and you have the plugin to help, please point me to it ^_^.


Again, I'm sorry if this an obvious question >_>
Use a common event that's set to Autorun (autorun is what causes the player to freeze).  Autorun/parallel process common events require a switch to active them.  So just turn on the switch when you want to freeze the player, and turn it off again when you want them to regain control.  The autorun event doesn't need to have any event commands.
What would normally freeze the player like that is an autorun event.  So if your activation of the ON and OFF commands are in an autorun event, then the freezing will happen automatically.  So if you have 'stuff' happening (like a cut scene) you actually don't need a switch.


Perhaps, though, you have something a bit more complex in mind, in which case you need to tell us why you want the player frozen, what will happen during that frozen phase.
I was wondering what will be the trigger to unfreeze the player, as it's not something they will be able to do themselves.  


A series of text boxes will also freeze the player, as well a move route (on the player OR another event) with the Wait for Completion box checked.  So if you only want to freeze them until an NPC reaches a certain position, that would be the way to go, keeping in mind that they will only move while they're within a certain distance of the player - if they go off-screen, they might stop moving.
that's simple - any autorun event is intended to freeze the player while it is running, and events can be controlled by switches (in fact if you're using a common event autorun it is required to be controlled by a switch)


The problem is that that autorun needs to contain the check for when the switch goes off again, and that depends on when and why you want to freeze the player.


It is easy in some situations but more complex in other cases, and you didn't give enough info to decide if you should go this route.


If the situation is a more complex one, you might need a plugin - but I think one like that already exists if I remember correctly.
Actually, that answered what I want perfectly, thank you guys =D


I had a more complex thing in mind and was only missing this part. 😉
While the Autorun Event runs other Paralell Events will not run.


So try to use a normal paralell common Event and use set move route player Wait60 frames, no repeat, no skip, no wait for completion.


than insert as next Eventcommand the normal Eventcommand Wait, with 4 to 50 frames wait.


As long the event is on it will continue to give the player the wait command.While other Map stuff should work fine.

Original thread: https://forums.rpgmakerweb.com/threads/a-switch-to-freeze-the-player.71546/