# Sprites clipping because of animations

**URL:** https://forum.makecode.com/t/sprites-clipping-because-of-animations/24463
**Category:** Help
**Created:** [November 22, 2023, 12:41am UTC](https://forum.makecode.com/t/sprites-clipping-because-of-animations/24463 "2023-11-22T00:41:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![CoolSwords4](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/coolswords4/32/9222_2.png) [@CoolSwords4](https://forum.makecode.com/u/CoolSwords4)
#### Post date: [November 22, 2023, 12:41am UTC](https://forum.makecode.com/t/sprites-clipping-because-of-animations/24463/1 "2023-11-22T00:41:41Z")

</div>

I’m working on a game, and I am noticing that the enemies and the player are able to clip into walls because of their animations. They only move around one pixel at a time at most so I’m not having them teleport or anything. Is there any way I can either set a hitbox for my sprites? Or another way to fix the clipping?

Game (Ignore the title screen it’s a placeholder lol): [https://arcade.makecode.com/S71744-85085-42846-04843](https://arcade.makecode.com/S71744-85085-42846-04843)

---

<div class="post-metadata">

### Author: ![Soleb244](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Soleb244](https://forum.makecode.com/u/Soleb244)
#### Post date: [July 9, 2026, 11:18pm UTC](https://forum.makecode.com/t/sprites-clipping-because-of-animations/24463/2 "2026-07-09T23:18:39Z")

</div>

This is a problem i aslo had. Likely the only way to fix it is by making hitbox with another sprite, something like this:

 ![1000028980](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/7/4/74e7b0b605c5d13851b70226cc4d1224d5285860.jpeg)

Then move the hitbox and animate the sprite.
