My character sprite has animations for idle, jump, falling and running.
If you switch between these too quickly, they get stuck.
So if I'm running left, and then I quickly run right, it will get stuck in Idle animation.
Any ideas why this would happen?
Impossible to tell without seeing your project.
Please share the capx or at least a screenshot of your event sheet.
Don't use "On key released" event to set Idle animation, because the key can be released while another key is still down.
Use "Platform is NOT moving" event instead.
Develop games in your browser. Powerful, performant & highly capable.
Thanks for getting back to me.
Oh sorry, I used Platform on Stopped - which worked!
The only other issue I'm still having is than when I land, after the jump and fall animation, if I'm holding right, it doesn't play any animation at all.
This is what it looks like now.
What happens if you press Left or Right in mid-jump?
You need to add another condition to those events - "Platform is on floor"
If I press left or right mid-jump, the animation is interrupted by the looks of things.
Still not working unfortunately. The animations just stop if I'm holding right and jump at the same time.
You need to change animations on Platform events, not on Keyboard events.
Try something like this (screenshot from someone else's game):