Galv's Stationary Turn


Stationary Turn - Version 1.3
RPG Maker MV Plugin
Galv

​


Introduction
Just another simple one, changing player movement.

Features
This plugin changes movement so that when the player taps a direction that he/she is not already facing then they will turn on the spot instead of moving.
If moving, dashing or already facing the direction of movement, there will be no delay and walking will happen as normal so as to keep movement as fluid as possible.
This plugin does not take into account mouse movement.

How to Use
- Copy the "GALV_StationaryTurn.js" file into your project's /js/plugins/ folder.
- Activate plugin using the 'Plugin Manager'
- Read the help file and examine the demo to learn how it works.

Plugin
Get it here

Credit and Thanks
- Galv

Terms
Free to use in any RPG Maker MV project including commercial. Please credit "Galv". 🙂

Updates
2017-03-07 - Version 1.3 - Added compatibility with HIME's lock facing direction plugin
2016-07-28 - Version 1.2 - Fixed a bug to do with embarking/disembarking vehicles
2016-07-24 - Version 1.1 - Fixed a bug when forcing movement would not move in some cases
2016-06-30 - Version 1.0 - Release
Thanks for this plugin  🙂  This is i've been looking for 😀  
Fixed up a bug in version 1.1 - an issue when forcing player movement.
I have found a bug regarding exiting a vehicle.


When exiting a vehicle you remain on the spot rather than moving a space from the exit direction.
That can be a nice little touch. Is it compatible with your diagonal-sprites plugin? I mean, for example if I'm facing the "Right" direction, and then briefly press "Down+Left" at the same time, is my character going to face the "down-left" direction? Thank you!
I have found a bug regarding exiting a vehicle.


When exiting a vehicle you remain on the spot rather than moving a space from the exit direction.



Do you have the latest version? I have just tested vehicles and cannot replicate the issue.

That can be a nice little touch. Is it compatible with your diagonal-sprites plugin? I mean, for example if I'm facing the "Right" direction, and then briefly press "Down+Left" at the same time, is my character going to face the "down-left" direction? Thank you!



I'm not sure, I have not tested, but I struggle to hit the exact diagonal (both vertical and horizontal buttons) without it registering one or the other before moving diagonal. In theory it should work, though 🙂
I have the latest version installed.
Have you checked for plugin conflicts?
Did a long test through the plugins, I totally forgot about the plugin request I made about having my vehicle event entry/exit altered and the direction in which you leave it remains.


If you wish to look at the plugin that I had requested here is the link:
Edit your vehicle entry and exit plugin to change:


Game_Player.prototype.forceMoveTo = function(d) {
this.setThrough(true);
this.moveStraight(d);
this.setThrough(false);
};


To:

Code:
Game_Player.prototype.forceMoveTo = function(d) {
	this._moveRouteForcing = true;
    this.setThrough(true);
    this.moveStraight(d);
    this.setThrough(false);
	this._moveRouteForcing = false;
};
You're a genius, thank you for the fix there mate- your scripts reach peak perfection there all brilliant 🙂
Updated to version 1.2 with fixes to vehicle embarking related bugs. Thanks Skurge for the bug reports
Updated to version 1.3 - Added compatibility with HIME's lock facing direction plugin.

Original thread: https://forums.rpgmakerweb.com/threads/galvs-stationary-turn.65771/