[Solved] Sarven Road [help]

I can’t move.
This is my code:

while true:
    enemy = hero.findNearestEnemy
    yPos = hero.pos.y
    xPos = hero.pos.x
    if enemy:
        hero.attack(enemy)
    else:
        yPos += 5
        xPos += 5
1 Like

I have () at the end of

enemy = hero.findNearestEnemy()
1 Like

i had to type it all out.

1 Like

You have to add a moveXY command at the end.

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.