I copied the code from the game I’m making and used a paper 2D Mario as an example. I have it set to have a different animation play for all 8 directions, and that works mostly fine. The only problem is that if I want to go from moving diagonal to just moving horizontal or vertical, the animation doesn’t change and stays the diagonal animation. Would anyone know how to fix this.
Video showing the problem since I’m bad at explaining:
https://youtu.be/LT1SAspIm7c