Refraining the player from moving, while allowing them to turn.

To make it more understandable, I'm trying to make a shield that protects you from projectiles coming from the direction you're pointing (as if you were defending it).
Just as if it was the green soul mode from Undertale.
I've been trying over and over without any success, only getting the system of "the shield pointing at the player's direction"
"Refraining the player from moving, while allowing them to turn"
This seems to work.
Clip1.JPG

You can then add a pg2 triggered by a switch condition to disable the locked movement for after the projectiles are finished.

Original thread: https://forums.rpgmakerweb.com/threads/refraining-the-player-from-moving-while-allowing-them-to-turn.180568/