MZ Unique 8-Directional Movement

Hi all, I need an 8-directional movement plugin for my RPG Maker MZ project. However, because of the way my sprites are designed, the standard ones will not work.

The sprites in my game follow similar design guidelines as Paper Mario 64, i.e., there are no true "north" or "south"-facing sprites, only diagonal left/right-facing ones, but with 8-directional movement:

!$Faren1.png

faren.gif

The problem I have when using a standard 8-directional movement plugin is that, due to the isometric sprite-facings, if the player is moving up, then they always face northeast. If they move down, they always face southeast. If they move left or right, they always face south. This results in glitchy movement which causes the character to appear to be walking backwards, among other issues.

Instead, this facing should adapt to the direction the player is already walking in, i.e., if the player is walking to the left and begins to move upwards, then the character sprite should remain northwest-facing. If the character is walking upwards and begins to move to the right, then the sprite should remain northeast-facing. Similar to how Mario moves in Paper Mario 64:

Original thread: https://forums.rpgmakerweb.com/threads/unique-8-directional-movement.151714/