# Help me pls

**URL:** <https://forum.makecode.com/t/help-me-pls/15608>\
**Category:** Help\
**Created:** [September 26, 2022, 4:58pm UTC](https://forum.makecode.com/t/help-me-pls/15608 "2022-09-26T16:58:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_player015](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@The\_player015](https://forum.makecode.com/u/The_player015)\
**Post date:** [September 26, 2022, 4:58pm UTC](https://forum.makecode.com/t/help-me-pls/15608/1 "2022-09-26T16:58:45Z")

</div>

If you have 4 holes and 1 enemy how can you make the enemy travel trough the holes?

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [September 26, 2022, 6:14pm UTC](https://forum.makecode.com/t/help-me-pls/15608/2 "2022-09-26T18:14:21Z")

</div>

Could you explain a little better

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [September 26, 2022, 8:34pm UTC](https://forum.makecode.com/t/help-me-pls/15608/3 "2022-09-26T20:34:39Z")

</div>

You can set a array for each location

---

<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:** [September 27, 2022, 11:04pm UTC](https://forum.makecode.com/t/help-me-pls/15608/4 "2022-09-27T23:04:27Z")

</div>

Or you can create a function for spawning the enemy with adjustable spawn locations. Then generate the enemy on the x-axis of the hole. So now what you want to do is to give the enemy a negative number impulse (or just move the enemy towards the hole)
