# Hitbox

**URL:** <https://forum.makecode.com/t/hitbox/22993>\
**Category:** Arcade\
**Tags:** game, art\
**Created:** [October 4, 2023, 4:46pm UTC](https://forum.makecode.com/t/hitbox/22993 "2023-10-04T16:46:08Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [October 4, 2023, 11:36pm UTC](https://forum.makecode.com/t/hitbox/22993/7 "2023-10-04T23:36:58Z")

</div>

The answer is both.

**Sprite overlaps** are based on the pixels in the image (transparency is ignored). In other words, the yellow area of your example

**Tilemap overlaps** are based on the outer rectangle of all filled pixels in an image. For your example, that would be the entire outer rectangle of the sprite. For an image like this one:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/93b646c7632b18516ff28d4a9b95eeafcd0ffb53.png)

…it’s the red rectangle (the rectangle around all filled pixels).

---

_[View the full topic](https://forum.makecode.com/t/hitbox/22993)._
