# 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:** 1
**Showing post:** 6

<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 …

---

_[View the full topic](https://forum.makecode.com/t/why-are-my-animations-not-working/18845)._
