# Why are my animations not working?

**URL:** <https://forum.makecode.com/t/why-are-my-animations-not-working/18845>\
**Category:** Help\
**Created:** [March 28, 2023, 9:58pm UTC](https://forum.makecode.com/t/why-are-my-animations-not-working/18845 "2023-03-28T21:58:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brainstorm\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brainstorm_studios/32/20476_2.png) [@Brainstorm\_Studios](https://forum.makecode.com/u/Brainstorm_Studios)\
**Post date:** [March 28, 2023, 9:58pm UTC](https://forum.makecode.com/t/why-are-my-animations-not-working/18845/1 "2023-03-28T21:58:14Z")

</div>

I’m using the character animations extention, i have a body sprite that works out all of the physics, but the sprite still jitters between animations when i land. What gives?

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [March 29, 2023, 12:31am UTC](https://forum.makecode.com/t/why-are-my-animations-not-working/18845/2 "2023-03-29T00:31:50Z")

</div>

Could be a lot of things, can you show the code?

---

<div class="post-metadata">

**Author:** ![Brainstorm\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brainstorm_studios/32/20476_2.png) [@Brainstorm\_Studios](https://forum.makecode.com/u/Brainstorm_Studios)\
**Post date:** [March 29, 2023, 6:21pm UTC](https://forum.makecode.com/t/why-are-my-animations-not-working/18845/3 "2023-03-29T18:21:14Z")

</div>

> **[hop n' bop!](https://arcade.makecode.com/S49103-53834-71921-28254)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [March 29, 2023, 6:28pm UTC](https://forum.makecode.com/t/why-are-my-animations-not-working/18845/4 "2023-03-29T18:28:16Z")

</div>

image size (pair is best)

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [March 29, 2023, 6:32pm UTC](https://forum.makecode.com/t/why-are-my-animations-not-working/18845/5 "2023-03-29T18:32:22Z")

</div>

I normally run the character animations in an on game update block

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [March 29, 2023, 6:35pm UTC](https://forum.makecode.com/t/why-are-my-animations-not-working/18845/6 "2023-03-29T18:35:20Z")

</div>

The issue here is that your animations are changing size. Check out my comment here for a more in-depth explanation and some sample code on how to fix it:

> [@My Mario is teleporting](https://forum.makecode.com/t/my-mario-is-teleporting/16397/3):
>
> @Milo I think your animations are the culprit: Because you have animations that change size each frame, you might want to try creating a hidden “body sprite” that you use for all of your physics and a second “display sprite” that just animates. Here’s some example code demonstrating what I mean: The sprite on the left is actually two sprites; one is running an animation that changes size each frame and the other doesn’t animate at all. We do all of the physics/controls/overlaps etc. on the …

---

<div class="post-metadata">

**Author:** ![Brainstorm\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brainstorm_studios/32/20476_2.png) [@Brainstorm\_Studios](https://forum.makecode.com/u/Brainstorm_Studios)\
**Post date:** [March 29, 2023, 9:09pm UTC](https://forum.makecode.com/t/why-are-my-animations-not-working/18845/7 "2023-03-29T21:09:47Z")

</div>

The thing is i made a body sprite already, but it didnt change anything.
