Hi Everyone, I am making a 2d platformer in Godot engine. I have came across on issue.
In a lot of platformers when you try to run and you are on a wall the character plays idle animation. I wanted to implement this in my game. I tried to code that when I am on a wall
play the idle animation
But when I run this when the player is on a wall it plays the idle animation but it only the first frame
I also tried this:
if velocity.x == 0:
But is still plays the running animation because I am using a else statement for running animation
Can Someone help me with this?