I have a sprite with animation frames for up/down/left/right, and they work only once. I can't press right, release it and then press it again and have the animation play that second time. I have to press another directional key (and play that animation) before the other key will work again.
right key pressed= sprite moves, animation,
right key released= sprite stops, stop animation,
right key pressed= sprite moves, no animation.
right key pressed= sprite moves, animation,
right key released= sprite stops, stop animation,
up/down/left key pressed= sprite moves up/down/left, correct animation,
up/down/left key released= sprite stops, stop animation,
right key pressed= sprite moves, animation.
Basically I can't press any key, release it and press it again and have the animation play twice in a row. Why is this?