Animation of sprite not working as intended

The animation of my character keeps having ‘jitters’ in it and is not playing it’s idle animation after I press a button. If you are able to help that would be wonderful. Thank you.

1 Like

You are working too hard. Let the extension do the work.
This is all you need:

does it already recognize what moving up, down, right, left, ect. is? Thank you.

Here I fixed it for you. The problem was something I got solved yesterday. Your sprite size was an odd number. For some reason, Makecode doesn’t like that. That is why it looked so jittery. I also noticed that you were specifying the direction on every button press. You don’t actually need to do that. it does that automatically. Here is your code fixed. everything works just like the old but with fewer blocks.

Thank you!

1 Like