I just started using MakeCode arcade and ran into some issues making my own game. I have a couple towers on the ground and want my enemies to follow them and start attacking upon overlap. The problem is that only one enemy is moving, even when using the “array of enemies” block. Additionally upon destroying a tower, the enemy stops and does not move onto the next one. Any suggestion or feedback would be greatly appreciated.
Could you please share your code?
It’s very broad, a link or a screenshot of the code is quite appreciated.
Hey, welcome to the community! If you’re having issues with your game, it’s usually best to send a link to your project so people can help you fix it without relying solely on a description. If you don’t know how to do that, here’s a quick tutorial!
![]()
What is the code you are using to make the enemies do that? Just do what @Air said to post it and then we can help you!
to fix this, you have to repupdate all the sprites to start following the closest tower. i reccomend checking out my tutorial for [Tutorial] Making an Enemy Follow Multiple Sprites ![]()
Here is the link: https://makecode.com/_4RgceT8R2Jai
As I thought!
The chainsaw variable should be “value2” as value2 allows you to refer to ALL enemies.That solves one of your problems.
This worked really well, thank you!


