In my game, the player is constantly moving forward, and they have to choose a direction (by pressing the left and right buttons) to determine where to turn.
I’d like to play a specific animation depending on the current direction the player is going (e.g., left, right, down, or up), but I can’t do this by processing after pressing, because if the player presses the “right” button, they might end up moving upwards.
How can I process the current direction of the object’s movement? If you have any solutions to this problem, please let me know. Thanks in advance!
*Note - game engine Godot 4, 2D game.
Check out: https://www.youtube.com/watch?v=LOhfqjmasi0&t=3526s time:53minutes
Very helpful for that I believe