DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
830
First Language
English
Primarily Uses
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.
 

JLowther

Veteran
Veteran
Joined
Feb 20, 2016
Messages
327
Reaction score
38
First Language
English
Primarily Uses
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! :)
 

Latest Threads

Latest Posts

Latest Profile Posts

Work starts today at 2pm. I hate jeans, but the dress code says I have to wear them... That's how I discovered I was a plus size. Shopping for my first pair of jeans.
Anyhow, I'll post a new video on TheDazzlingsAreBack as soon as I'm able to.
dEj6ha4.png

WIP :)
Added some cliffs / walls / roofs to the tilesheet and am currently working on roof objects to make them prettier and more variable. And of course, windows and doors that fit to the game's style.
I also adjusted the grass color but i have some issues with my display, so if it looks weird, please let me know :)
Updated the dev logs for the game I'm working on! Check it out here
Alright, I left the modern girl in fantasy brain's hands while I get my - MODERN GIRL WHAT HAPPENED?! I blame fantasy brain for this.

WinaElemental.png
I just realized that, while I was waiting for our little Easter Game to be approved in the Completed Games Thread, the game was already listed for more than a week, without me noticing x.x

So ... very delayed happy easter to everyone I guess? : D

Forum statistics

Threads
110,562
Messages
1,054,274
Members
143,677
Latest member
ZackTheWolf
Top