# Glitch in animations,Sprites 24x21

**URL:** <https://forum.makecode.com/t/glitch-in-animations-sprites-24x21/41518>\
**Category:** Help\
**Created:** [January 15, 2026, 4:03am UTC](https://forum.makecode.com/t/glitch-in-animations-sprites-24x21/41518 "2026-01-15T04:03:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gemerson](https://avatars.discourse-cdn.com/v4/letter/g/ee59a6/32.png) [@Gemerson](https://forum.makecode.com/u/Gemerson)\
**Post date:** [January 15, 2026, 4:03am UTC](https://forum.makecode.com/t/glitch-in-animations-sprites-24x21/41518/1 "2026-01-15T04:03:40Z")

</div>

Hello, I was recreating the Mega Man game, but I ran into a problem with the animations. For example, when I approach the edge of an element that the character jumps towards, it starts to glitch because it doesn’t know which animation to use: the jump animation or the walking animation. I want to know if this is a limitation of Mackecode or an error in my programming. I hope you can help me.  
I’ve attached two photos showing the areas where the character glitches.

> **[megaman\_buggeado](https://arcade.makecode.com/76136-52676-75833-06432)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/4/5/4555d5b10d9a1e334182af7529afb9fc32206ee0.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/0/9/094a16f51aeae2201fae974117e83be024a9d623.png)

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [January 15, 2026, 4:10am UTC](https://forum.makecode.com/t/glitch-in-animations-sprites-24x21/41518/2 "2026-01-15T04:10:18Z")

</div>

I’m pretty sure it’s because the sprite’s have different hitboxes, which causes the flickering.

Try to replace the hitbox with a sprite hitbox so all sprites have the same hitbox.
