Hey dudes. I am having some problems on the Backwoods Forest level, A Fine Mint. I’m not sure exactly what’s wrong. Some help would be appreciated. Here’s my code.
while True:
def pickUpCoin():
coin = hero.findNearestItem()
if coin:
hero.moveXY(coin.pos.x, coin.pos.y)
# Write the attackEnemy function below.
# Find the nearest enemy and attack them if they exist!
while True:
pickUpCoin()