Help with state animations

Hi everyone,

I’m working on a game in MakeCode Arcade, and I’m having trouble setting up animations for my character. I want to have different animations for each state:

  • Walking to the right
  • Walking to the left
  • Idle (standing still)
  • Climbing up a ladder
  • Climbing down a ladder
  • Staying still on the ladder

However, my animations are not working correctly—they sometimes freeze or don’t transition smoothly between states. I’m not sure how to configure them properly.

If anyone has experience with character animations in MakeCode Arcade, I would really appreciate some guidance or example code to help me fix this.

Thanks in advance!

Here is my code: https://arcade.makecode.com/S95430-18455-32764-63704

4 Likes

@tochaeluz First of all, you want to make all your player assets and sprite animations to be of the same width and length, which removes the jittering. I don’t really know why your animations are freezing but maybe you could use the platformer extension in Github to simplify your code and find the problem. Hope this helps!

2 Likes

I highly recommend the character animation extension, it’s in the default list and is super helpful - just need to define the animations at the start

2 Likes

This is better than the platformer one. But it really depends on what game you are trying to make.

2 Likes