Disable Player Movement By Input

Disable Player Movement By Input


by DreamX


Introduction/Features


Define switch IDs in the parameters to decide whether to allow the player to move and/or activate events with the action button.


Parameter "Move Switch" defines the switch ID used to decide whether to allow the player to move by input. If this switch is ON, then the player cannot move by input. However, they can still activate adjacent events with the action button.


Parameter "Move & Action Button Switch" defines the switch ID used to decide whether to allow the player to move by input and activate events by action button. If this switch is ON, then the player cannot move by input and cannot activate adjacent events with the action button.


You may ask why this plugin would be useful, given that by default the player cannot move while an event is running anyway. However, you may not always need or want an event to be running while you need to disable player movement, so being able to do so with a simple switch command is convenient. In addition, this plugin allows you to disallow the player from moving but still allow them to activate adjacent events. A good use of this would be a situation where the player has to press the action button on an event adjacent to them at a certain timeframe.


How To Use


Save the script page as a .js file and configure the parameters to your liking. Then, just turn the switch on and off as you wish.


Script


Credits


DreamX


Author's Notes/Terms of Use
Free to use and modify for commercial and noncommercial games, with credit.
This was just what I needed for making it so a player crawling out of a vent couldn't move around until they had fully emerged from the vent!

Thanks! 🙂
Hello, sorry for bothering, but this is the closest plugin I can find that caters to my need.
I downloaded and installed the js, set the parameters (change move switch to value 1), but my player can still move freely.
I'm making a visual novel style so I want the player not be able to move at all other than using action buttons and making choices.
Do I need to use a plugin command? Script call? Again, apologize if it's a stupid question. I'm still figuring out my way around plugins.
@Anstarx what exactly do you need?
stop player movement by input so you can do other things?
because I made a very basic version of it.

if you use MV and have YEP plugins, you can use YEP_Movement...... plugin,
and use its plugin command otherwise.

I dont know exactly sure what this does, but parameter "MoveByInput"
when ON should stop player movement.

Original thread: https://forums.rpgmakerweb.com/threads/disable-player-movement-by-input.61776/