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

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

1 Like

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:


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.

maybe this’ll help you: Wega’s Challenge

thank you :grin:

1 Like

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

1 Like

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

1 Like

Can someone help me investigate the tile skipping issue?