Rotate Move (MV/MZ)

Rotate Movement 1.1
ATT_Turan
​

Introduction
This plugin, based on a request by @TheRamenGirl, forces the player character to be facing the desired direction before it can start walking. It combines two features - one is that tapping a direction key will make the player turn in place.
Unlike other turn in place plugins, this will only allow the player to turn one facing (90 degrees) at a time. So if you tap the direction opposite the player's current facing, they will first turn to the left or right and it will require a second press (or held input) to turn fully around.

The second feature is that this turning is implemented into movement, so holding down a direction key that's different from the player's current facing will make them turn in place until they're facing the correct direction and start moving.
There is a plugin parameter to set how quickly these turns can be done.

I have tested the basic functionality, please let me know if you encounter any errors. I will consider making compatibility patches if the other plugin is free to use (or one I own, such as a Yanfly product) and unobfuscated. Otherwise, other authors are free to modify this code to make it compatible with theirs so long as I am still credited.

1756428776174.gif


Terms and Credits
Free for non-commercial and commercial use. Credit ATT_Turan.
The hero, the saint, the legend that none of us deserve. My savior, the Blessed Saint Tur of the An.
And you didn't call this plugin Turan_In_Place.js?
Why?
Corrected a niche situation pointed out by @ShadowDragon where the player would turn all the way around instead of to the closest direction.
This might be useful for spacecraft movement.
Works like a charm! *chef's kiss*
Thank you very much!!!

Original thread: https://forums.rpgmakerweb.com/threads/rotate-move-mv-mz.179832/