Level: Forest Fire Dancing


#1

Hello all,

I’m a little stuck on this level and seeking some help. This is my code with comments cut out:

while True:

evilstone = hero.findNearestItem()
if evilstone:
pos = evilstone.pos
if pos.x == 34:
hero.moveXY(46,22)

else:
hero.moveXY(34,22)

else:
hero.moveXY(40,22)

For some reason my character just stops after about 11 seconds and stands in the middle, getting hit with a fireball. Everything is running great up to that point.

I also tried changing the nested else statement to an elif pos.x == 46 but this did not help.

Any help would be greatly appreciated.


#2

I fixed it. Disregard.