Inspired by Move method stuttering when MoveXY does not post I tried about half an year ago to rewrite the same function. You grab the coins at arm’s length. I think if the coef can be changed to other near values depending maybe from the hero’s speed, the boots used or the presence of the speed ring. The function may be used also when fighting enemies. You can also use the fastest 2.5 m/s moveXY boots but I have no definitive conclusion about the gain in speed. After some time I switched to the boots of leaping and forgot about this, but will be glad if someone use the function and share comments or hopefully improvements.
coef = 3 def moveToXY(goalPoint): goal = Vector.subtract( hero.pos, goalPoint) goal = Vector.normalize(goal) goal = Vector.multiply(goal, coef) moveToPos = Vector.add(goalPoint, goal) hero.moveXY(moveToPos.x, moveToPos.y ) # call if coin: moveToXY(coin.pos)