An open library of RPG Maker MV plugins, powered by the community.

PGMV - The Community-Driven Plugin Library for RPG Maker MV

MV plugins

HIME Movement Direction Lock - HIME_MovementDirectionLock.js

Plugin desc : v1.0 - Prevents you from moving the player in certain directions.

License :
・Copyright: Retained
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Allowed
・Details: See Download Page / In-plugin documentation

Author : Hime

Website : https://himeworks.com/

Desc page : https://himeworks.com/2015/12/movement-direction-lock/

Download Page : https://raw.githubusercontent.com/munokura/HIME-MV-plugins-jp/master/HIME_MovementDirectionLock.js

File name : HIME_MovementDirectionLock.js

Help of plugin :

@title Movement Direction Lock
@author Hime --> HimeWorks (http://himeworks.com)
@date Dec 31, 2015
@filename HIME_MovementDirectionLock.js
@url  http://himeworks.com/2015/12/movement-direction-lock/

If you enjoy my work, consider supporting me on Patreon!

* https://www.patreon.com/himeworks

If you have any questions or concerns, you can contact me at any of
the following sites:

* Main Website: http://himeworks.com
* Facebook: https://www.facebook.com/himeworkscom/
* Twitter: https://twitter.com/HimeWorks
* Youtube: https://www.youtube.com/c/HimeWorks
* Tumblr: http://himeworks.tumblr.com/

@plugindesc v1.0 - Prevents you from moving the player in certain directions.
@help
== Description ==

This plugin allows you to restrict player movement temporarily using events.

By default, they can move in all four, or eight, directions. By using certain
plugin commands, you can "lock" certain directions if you didn't want to allow
them to move in those directions.

== Terms of Use ==

- Free for use in non-commercial projects with credits
- Contact me for commercial use

== Change Log ==

Dec 31, 2015 -  initial release

== Usage ==

Here are some direction names that you can use:

  UP
  DOWN
  LEFT
  RIGHT
  UPLEFT
  UPRIGHT
  DOWNLEFT
  DOWNRIGHT

To lock a movement direction, use the plugin command

  lock_move_dir DIR1 DIR2 DIR3 ...

To unlock a movement direction, use the plugin command

  unlock_move_dir DIR1 DIR2 DIR3

For convenience, you can lock multiple directions in one command.
So for example, if you wanted to prevent players from moving up or down,
you can write

  lock_move_dir UP DOWN

And afterwards, you can unlock those directions with

  unlock_move_dir UP DOWN

スポンサードリンク

-MV plugins

Copyright© PGMV - The Community-Driven Plugin Library for RPG Maker MV , 2026 All Rights Reserved.