Okay, I HATE it when I have to ask for help online but this is just ridiculous. I did exactly what the game asked for me to code and my character just stands there until he dies. There are no errors I just don’t know whats wrong.
Here’s my code:
while True: enemies = hero.findEnemies() enemyIndex = 0 # Wrap this logic in a while loop to attack all enemies. # Find the array's length with: len(enemies) while True: enemy = enemies[enemyIndex] # "!=" means "not equal to." if enemy.type != "sand-yak": # While the enemy's health is greater than 0, attack it! while enemy.health > 0: hero.attack(enemy) if hero.isReady("powerUp"): hero.powerUp() pass # Between waves, move back to the center. hero.moveXY(40, 33)