Hi! I'm having a weird problem with some scripts I've modified, and am looking for any insights as to what the problem could be.
Scripts I'm using:
Moghunter's 8-Way Movement, modified to show diagonal charasets.
Yanfly's Slippery Tiles script, modified for 8-way movement.
The problem:
When sliding diagonally from a non-slippery ground tile, the code works fine, as long as you don't hit any walls or corners before you stop sliding. But,
1. If you're sliding towards up-right, or down-left and you hit a wall, the player will continue sliding in that general direction until they run up against a corner. This is fine.
2. If you're sliding towards up-left or down-right, and you hit a wall, the player changes from moving up-left to up-right, or from moving down-right to down-left. This isn't suppose to happen, but I can't find where in the code the problem is occuring.
I've replicated the error in a blank project, which is attached below. Any help on this issue would be appreciated!
Edit: Updated version of Slide Test
!Slide Test.rar