In my project I have a character (rigidbody2d) who moves right with the function moveRight()
I want to play a walking animation while the action key is held (echo). When the key is tapped no animation is played but the character moves right.
Currently on echo the animation only plays the first frame until the key is released.On release the animation plays but at that point the sprite is no longer moving
What's my issue here? I'd like the animation to play on a loop as long as the key is held.
Pertinent code below:
if not event.is_echo():