Solved! @Mac15001900 provided a fix.
Hello, everyone!
Thanks in advance for any help provided!
I currently use the Victor Engine's Diagonal Movement plugin in my game.
The problem is that I want to temporarily turn off the diagonal movement at a certain part of the game, but mouse input can still trigger it. In other words, I can toggle diagonal movement for keyboard input but can't for mouse/touch input.
It also doesn't seem to be a compatibility issue, as I've just tried deactivating all but the necessary plugins (in my case, OrangeGreenworks, SRD_TranslationEngine, VE_BasicModule, and VE_DiagonalMovement) and it still happens.
My javascript knowledge is rather limited, but I've looked into the code and tried using the plugin command DiagonalMovement off player and the following script call:
ChatGPT also suggested using the following script call:
None of them disables diagonal movement through mouse input, only through keyboard input (and probably gamepad input, I haven't tested it).
I'd rather find a fix than use another plugin in the current state of my game.
An alternative fix would be to find a way to prevent diagonal movement when clicking on specific events or walking towards them, but I think that would be even more complicated.
I'd appreciate any help since I couldn't fix it by myself and Victor Sant hasn't posted or commented anything here or on his website since 2018.
I can provide any other information and Steam keys if necessary.
Thank you!
Hello, everyone!
Thanks in advance for any help provided!
I currently use the Victor Engine's Diagonal Movement plugin in my game.
The problem is that I want to temporarily turn off the diagonal movement at a certain part of the game, but mouse input can still trigger it. In other words, I can toggle diagonal movement for keyboard input but can't for mouse/touch input.
It also doesn't seem to be a compatibility issue, as I've just tried deactivating all but the necessary plugins (in my case, OrangeGreenworks, SRD_TranslationEngine, VE_BasicModule, and VE_DiagonalMovement) and it still happens.
My javascript knowledge is rather limited, but I've looked into the code and tried using the plugin command DiagonalMovement off player and the following script call:
JavaScript:
$gamePlayer.setDiagonalOff();
ChatGPT also suggested using the following script call:
JavaScript:
Input.virtualDiagonalEnabled = false;
None of them disables diagonal movement through mouse input, only through keyboard input (and probably gamepad input, I haven't tested it).
I'd rather find a fix than use another plugin in the current state of my game.
An alternative fix would be to find a way to prevent diagonal movement when clicking on specific events or walking towards them, but I think that would be even more complicated.
I'd appreciate any help since I couldn't fix it by myself and Victor Sant hasn't posted or commented anything here or on his website since 2018.
I can provide any other information and Steam keys if necessary.
Thank you!

