# I need some help with some glitchy animations

**URL:** <https://forum.makecode.com/t/i-need-some-help-with-some-glitchy-animations/36587>\
**Category:** Help\
**Created:** [May 11, 2025, 7:07pm UTC](https://forum.makecode.com/t/i-need-some-help-with-some-glitchy-animations/36587 "2025-05-11T19:07:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maverick2011](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Maverick2011](https://forum.makecode.com/u/Maverick2011)\
**Post date:** [May 11, 2025, 7:07pm UTC](https://forum.makecode.com/t/i-need-some-help-with-some-glitchy-animations/36587/1 "2025-05-11T19:07:30Z")

</div>

I’m making an NES version of ssb (probably illegal on a Microsoft website) but I’m having issues with the animation. In the animation previews, they work exactly how they should, but when I play it in the game, the animation starts glitching out.  
Here’s a link to the game: [https://makecode.com/\_6FiUqceuLWyT](https://makecode.com/_6FiUqceuLWyT)

---

<div class="post-metadata">

**Author:** ![Maverick2011](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Maverick2011](https://forum.makecode.com/u/Maverick2011)\
**Post date:** [May 12, 2025, 2:42am UTC](https://forum.makecode.com/t/i-need-some-help-with-some-glitchy-animations/36587/2 "2025-05-12T02:42:25Z")

</div>

By the way, I have not gotten the animations for excitebike and samus, and the stage selection hasn’t been programmed yet.

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [May 12, 2025, 2:44am UTC](https://forum.makecode.com/t/i-need-some-help-with-some-glitchy-animations/36587/3 "2025-05-12T02:44:01Z")

</div>

Your problem is due to these animation frames that are smaller than the normal size of the sprite:

 ![Screenshot 2025-05-11 at 9.54.12 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/3/a30c6fb80ece0905008746e29974bcda7e9577e5.png)  
In Makecode, when a sprite’s image changes, its hitbox updates to be a square around all filled in pixels. Because the bottom row has no pixels, the hitbox is momentarily updated to be one pixel shorter than normal. Then, when the next frame of the animation happens, the hitbox resizes and clips into the ground, causing the visual stutter effect.

For this reason, some people decide to make a separate “hitbox sprite” that is invisible and does all the collisions, and they make the “animation sprite” move to the location of the hitbox sprite every game update and have no collision, so it doesn’t affect anything.

You could also just add the tip of his boot touching the ground in those wrong frames and that would fix the issue.

---

<div class="post-metadata">

**Author:** ![Maverick2011](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Maverick2011](https://forum.makecode.com/u/Maverick2011)\
**Post date:** [May 20, 2025, 5:05pm UTC](https://forum.makecode.com/t/i-need-some-help-with-some-glitchy-animations/36587/4 "2025-05-20T17:05:32Z")

</div>

Thanks for the help. Sorry it took so long to get back with you.
