MV [SOLVED] Temporarily disable Diagonal Movement using QMovement?

Hello there. For certain maps that utilize puzzles, I want to stop the player from being able to move diagonally. Currently I am using QMovement: https://github.com/quxios/QMV-Master-Demo/blob/master/js/plugins/QMovement.js for pixel movement. QMovement does have a way to disable Diagonal Movement from plugin settings parameters, but I was wondering if anyone knew what I could put into a Script or Plugin Command to turn Diagonal Movement on or off via events.
Any help is appreciated, thank you.
I don't think you can. But depending on the puzzle, couldn't you just make your colision map so you can only move in cardinal directions?
Looks like if you do a script call of QMovement.diagonal = false it should do what you want. Then set it back to true afterward.
I don't think you can. But depending on the puzzle, couldn't you just make your colision map so you can only move in cardinal directions?
I apologize, but I don't think I understand what you mean. How would I use a collision map to only move in cardinal directions?

Currently I have it to where on my puzzle map, the player has normal grid-based movement and not pixel movement (changed the grid size to 48 for this map). However, if the player hits both up and left, they can move to the upper left tile.
Looks like if you do a script call of QMovement.diagonal = false it should do what you want. Then set it back to true afterward.
THANK YOU so much 😀 that worked perfectly.

Original thread: https://forums.rpgmakerweb.com/threads/solved-temporarily-disable-diagonal-movement-using-qmovement.169602/