# I'm lost in the dark(about my project)

**URL:** <https://forum.makecode.com/t/im-lost-in-the-dark-about-my-project/36433>\
**Category:** Help\
**Created:** [May 7, 2025, 4:12am UTC](https://forum.makecode.com/t/im-lost-in-the-dark-about-my-project/36433 "2025-05-07T04:12:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![BUM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bum/32/22127_2.png) [@BUM](https://forum.makecode.com/u/BUM)\
**Post date:** [May 7, 2025, 4:12am UTC](https://forum.makecode.com/t/im-lost-in-the-dark-about-my-project/36433/1 "2025-05-07T04:12:41Z")

</div>

I can’t seem to figure out why on 1 map it skips the tiles when adding a sprite and I don’t know how to keep the enemy following the player.[https://arcade.makecode.com/S54362-03691-66982-04637](https://arcade.makecode.com/S54362-03691-66982-04637)

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [May 8, 2025, 5:25pm UTC](https://forum.makecode.com/t/im-lost-in-the-dark-about-my-project/36433/2 "2025-05-08T17:25:10Z")

</div>

I didn’t look into the tile skipping problem, but I know that you need to be setting the enemy to follow the player in a forever loop or something, because the path is not a path to the player, it’s a path to where they were when you ran this code:

 ![IMG_8548](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/d/b/db2032fa2f4d57a9e485b1677e403352ec50c718.jpeg)  
So you need to run it over and over again to continuously set it to be the player position! If you are worried about performance, you could try making it re-run only when the player moves off the previous tile or something.

---

<div class="post-metadata">

**Author:** ![ShaneyBoi09](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shaneyboi09/32/18893_2.png) [@ShaneyBoi09](https://forum.makecode.com/u/ShaneyBoi09)\
**Post date:** [May 8, 2025, 8:31pm UTC](https://forum.makecode.com/t/im-lost-in-the-dark-about-my-project/36433/3 "2025-05-08T20:31:09Z")

</div>

maybe this’ll help you: [Wega’s Challenge](https://arcade.makecode.com/S07177-13309-16674-22718)

---

<div class="post-metadata">

**Author:** ![BUM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bum/32/22127_2.png) [@BUM](https://forum.makecode.com/u/BUM)\
**Post date:** [May 8, 2025, 8:31pm UTC](https://forum.makecode.com/t/im-lost-in-the-dark-about-my-project/36433/4 "2025-05-08T20:31:24Z")

</div>

thank you 😁

---

<div class="post-metadata">

**Author:** ![BUM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bum/32/22127_2.png) [@BUM](https://forum.makecode.com/u/BUM)\
**Post date:** [May 10, 2025, 5:58pm UTC](https://forum.makecode.com/t/im-lost-in-the-dark-about-my-project/36433/5 "2025-05-10T17:58:14Z")

</div>

[https://arcade.makecode.com/S54362-03691-66982-04637](https://arcade.makecode.com/S54362-03691-66982-04637) the enemy is now glitching out instead of following the player

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [May 10, 2025, 9:02pm UTC](https://forum.makecode.com/t/im-lost-in-the-dark-about-my-project/36433/6 "2025-05-10T21:02:44Z")

</div>

Looks like you accidentally set one of your dark sprites to the SpriteKind “light” which kills the enemy repeatedly:

 ![IMG_8598](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/9/69c530b35879434b9dc1c7b14b64048e318f5776.jpeg)

---

<div class="post-metadata">

**Author:** ![BUM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bum/32/22127_2.png) [@BUM](https://forum.makecode.com/u/BUM)\
**Post date:** [May 11, 2025, 3:46am UTC](https://forum.makecode.com/t/im-lost-in-the-dark-about-my-project/36433/7 "2025-05-11T03:46:48Z")

</div>

Can someone help me investigate the tile skipping issue?
