So here’s the code I’m using;
enemy1 = "Gort"
distance1 = hero.distanceTo(enemy1)
enemy2 = "Smasher"
distance2 = hero.distanceTo(enemy2)
enemy3 = "Gorgnub"
distance3 = hero.distanceTo(enemy3)
yet the last enemy3 part of the code isn’t working and is firing at the cannon where the cannonball shoots out. I think this may be a bug, if not could anyone paste in a code that works?