- Joined
- Apr 6, 2022
- Messages
- 8
- Reaction score
- 3
- First Language
- German
- Primarily Uses
- RMMZ
Hello all,
I'm looking for a way to temporarily disable a player's ability to move in certain directions or alternatively allow them to move only in certain directions. I've found there's a plugin for MV that does this (made by HimeWorks), but it obviously isn't built to work in MZ.
Specifically, I'd like to lock and unlock/block and allow movement only on X-axis or Y-axis depending on how they player initially engages with an event. So something like "if player is facing down, lock movement to y-axis".
I'm relatively new to scripting, but if someone can give me pointers to anything I may have overlooked that exists there, I should be okay to work that in. Alternatively, if someone knows of a plugins that I didn't find in my google searches, I'm just as happy to use them.
The current state of my event is:
Player is at a distance of 1 from the event
Player direction is event location
[OK] is being pressed to interact
--- player is locked onto axis of direction faced (y for facing up/down; x for facing left/right) ---
Player can move object along with them --- along above-specified axis ---
And then obviously that movement direction lock is lifted when [OK] is released.

I'm looking for a way to temporarily disable a player's ability to move in certain directions or alternatively allow them to move only in certain directions. I've found there's a plugin for MV that does this (made by HimeWorks), but it obviously isn't built to work in MZ.
Specifically, I'd like to lock and unlock/block and allow movement only on X-axis or Y-axis depending on how they player initially engages with an event. So something like "if player is facing down, lock movement to y-axis".
I'm relatively new to scripting, but if someone can give me pointers to anything I may have overlooked that exists there, I should be okay to work that in. Alternatively, if someone knows of a plugins that I didn't find in my google searches, I'm just as happy to use them.
The current state of my event is:
Player is at a distance of 1 from the event
Player direction is event location
[OK] is being pressed to interact
--- player is locked onto axis of direction faced (y for facing up/down; x for facing left/right) ---
Player can move object along with them --- along above-specified axis ---
And then obviously that movement direction lock is lifted when [OK] is released.