# Ideas on how to create hitboxes?

**URL:** https://forum.makecode.com/t/ideas-on-how-to-create-hitboxes/12726
**Category:** Arcade
**Created:** [March 16, 2022, 4:57pm UTC](https://forum.makecode.com/t/ideas-on-how-to-create-hitboxes/12726 "2022-03-16T16:57:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![TheJaky](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thejaky/32/5711_2.png) [@TheJaky](https://forum.makecode.com/u/TheJaky)
#### Post date: [March 16, 2022, 4:57pm UTC](https://forum.makecode.com/t/ideas-on-how-to-create-hitboxes/12726/1 "2022-03-16T16:57:31Z")

</div>

I am making a fighting game, and I need help making hitboxes. How do I make one follow a player at the correct spot?

---

<div class="post-metadata">

### Author: ![personalnote](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/personalnote/32/31359_2.png) [@personalnote](https://forum.makecode.com/u/personalnote)
#### Post date: [March 17, 2022, 12:10am UTC](https://forum.makecode.com/t/ideas-on-how-to-create-hitboxes/12726/2 "2022-03-17T00:10:02Z")

</div>

game update, set the position to the player’s x and y values. i don’t know how you’ll do hitboxes but good luck!

---

<div class="post-metadata">

### Author: ![Wrath\_N\_Beans](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/wrath_n_beans/32/5351_2.png) [@Wrath\_N\_Beans](https://forum.makecode.com/u/Wrath_N_Beans)
#### Post date: [March 17, 2022, 12:54am UTC](https://forum.makecode.com/t/ideas-on-how-to-create-hitboxes/12726/3 "2022-03-17T00:54:08Z")

</div>

hitboxes? i guess you could create walls that move to the players location, but that would just prevent overlap. it might work

---

<div class="post-metadata">

### Author: ![TheJaky](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thejaky/32/5711_2.png) [@TheJaky](https://forum.makecode.com/u/TheJaky)
#### Post date: [March 17, 2022, 6:14pm UTC](https://forum.makecode.com/t/ideas-on-how-to-create-hitboxes/12726/4 "2022-03-17T18:14:52Z")

</div>

ok, I will try this

---

<div class="post-metadata">

### Author: ![Segatendo](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Segatendo](https://forum.makecode.com/u/Segatendo)
#### Post date: [March 21, 2022, 4:36pm UTC](https://forum.makecode.com/t/ideas-on-how-to-create-hitboxes/12726/5 "2022-03-21T16:36:01Z")

</div>

@Kiwiphoenix364 created hitboxes in my sonic 2 remake post, you could use that

---

<div class="post-metadata">

### Author: ![TheJaky](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thejaky/32/5711_2.png) [@TheJaky](https://forum.makecode.com/u/TheJaky)
#### Post date: [March 22, 2022, 4:30pm UTC](https://forum.makecode.com/t/ideas-on-how-to-create-hitboxes/12726/6 "2022-03-22T16:30:07Z")

</div>

Well i’ll try a lot of things, so thanks for the suggestion
