Is that error telling you that the enemy can not be found? Something like their may not always be an enemy so use an if statement?
1 Like
The code looks great. The problem is in the second part of the battle against the enemy. The first part of the battle against the enemy works.
So why the second battle, does not work?
hero.moveUp()
1 Like
I tried to rewrite my code in several things, and if i get my hero stuck.