Code posted below anyone know what I’m doing wrong
while True:
Friends = hero.findFriends()
friend = hero.findNearest(Friends)
offset = hero.distanceTo(friend)
heroPos = hero.pos
friendPos = friend.pos
if heroPos.x == friendPos.x - offset:
hero.move({"x": friendPos.x - offset, "y": heroPos.y})
elif heroPos.y == friendPos.y - offset:
hero.move({"x": heroPos.x, "y": friendPos.y - offset})
Now I know the solution has something to do with distanceTo but havent really figured it out
Gonna try some other levels in the meantime. will mark this thread as watched by me.
see ya
PS sorry if this is in the wrong section.