this is my code , my guy just stands still
while True:
# If it’s the first 10 seconds, attack.
if hero.time < 10:
if enemy:
enemy = hero.findNearestEnemy
hero.attack(enemy)
pass
# Else, if it’s the first 35 seconds, collect coins.
elif hero.time < 35:
if coin:
coin = hero.findNearestItem()
hero.moveXY(coin.pos.x, coin.pos.y)
pass
# After 35 seconds, attack again!
else:
enemy = hero.findNearestEnemy()
if enemy:
hero.attack(enemy)
someone heeeelp cuz i need this in 2 days