Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Rh0alex |
hi everyone, so im trying to make a running animation when the player is running but I cant figure it out. (Im pretty new to programming) So i used
if Input.is_action_pressed(“sprint”):
animatedSprite.animation = “running”
But it doesnt work since when the sprint button is used the walking animation plays at the same time so it glitches. How can I make the one animation stop and start playing the other one?