loop: enemy = self.findNearestEnemy() if enemy: self.distanceTo(enemy) < 5 self.attack(enemy) if enemy: self.distanceTo(enemy) > 5 self.shield() else: self.moveXY(40, 34)
This is my code for Stillness in motion. I have no clue what is wrong but it’s not working. Sorry if it’s not formatted right but I’m short on time and am in ICT class at school. If someone could lend a hand that’d be great.