# How do you make a custom hitbox for tiles?

**URL:** https://forum.makecode.com/t/how-do-you-make-a-custom-hitbox-for-tiles/44115
**Category:** Arcade
**Created:** [May 22, 2026, 7:32pm UTC](https://forum.makecode.com/t/how-do-you-make-a-custom-hitbox-for-tiles/44115 "2026-05-22T19:32:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![LP0818](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@LP0818](https://forum.makecode.com/u/LP0818)
#### Post date: [May 22, 2026, 7:32pm UTC](https://forum.makecode.com/t/how-do-you-make-a-custom-hitbox-for-tiles/44115/1 "2026-05-22T19:32:39Z")

</div>

heres the game btw: [https://arcade.makecode.com/S83593-36193-98699-74771](https://arcade.makecode.com/S83593-36193-98699-74771)

---

<div class="post-metadata">

### Author: ![engineer703](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/engineer703/32/35135_2.png) [@engineer703](https://forum.makecode.com/u/engineer703)
#### Post date: [May 23, 2026, 9:40pm UTC](https://forum.makecode.com/t/how-do-you-make-a-custom-hitbox-for-tiles/44115/2 "2026-05-23T21:40:47Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/3/a/3a729953abba17444a1f87d4c0910a7e0f428faa.png)

This is how you would do it. Take the ‘for element value of list’ block from the loops category, put the ‘array of all locations’ from the Scene category (under the Locations section), and put it instead of the ‘list’ part. Then, in the loop, create your sprite (sprite hitboxes are their pixels) and then drag in a 'place [Sprite] on top of [tilemap location (0) (0)], and replace the ‘tilemap location’ part with the value block dragged from the top of the loop.

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [May 23, 2026, 9:58pm UTC](https://forum.makecode.com/t/how-do-you-make-a-custom-hitbox-for-tiles/44115/3 "2026-05-23T21:58:12Z")

</div>

I think you’ll have to use a sprite since tiles always have a fixed hitbox of a square.

---

<div class="post-metadata">

### Author: ![LP0818](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@LP0818](https://forum.makecode.com/u/LP0818)
#### Post date: [May 26, 2026, 11:55pm UTC](https://forum.makecode.com/t/how-do-you-make-a-custom-hitbox-for-tiles/44115/4 "2026-05-26T23:55:00Z")

</div>

ok!!!
