Please help on Lurkers [SOLVED]

enemies = self.findEnemies()
enemyIndex = 0
    while enemyIndex < enemies.length:
        enemy = enemies[enemyIndex] 
            if enemy.type == 'shaman':
               while > 0:
                    enemyIndex += 1


Mostly this is a structural problem. Your first while loop should be aligned all the way to the left. If enemy.type should be aligned directly under the enemy definition and the last line should be four spaces (one tab) over from the left.


Isn’t there a butten that fixes that? If you didn’t understand.


No, learning to properly structure your code is part of learning to code. It’s up to you to do that.


I use the button to help me know what to do so I can do it in the future.


Thanks so much!

I can’t beleive all I had to do was move lines around. ;c