RPG Maker Forums

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.

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,450
Members
137,820
Latest member
georg09byron
Top