How do I make it so that the goto used previously stops executing when I try to execute another? Whenever I click before the turtle stops moving, the turtle will move to the position I want it to but then resume its previous goto commands. Is there a solution to this?
player = turtle.Turtle()
player.speed(1)
def moveturtle(x,y):
player.goto(x,y)
scrn = turtle.Screen()
scrn.delay(50)
player.penup()
scrn.onscreenclick(moveturtle)
scrn.listen()
scrn.mainloop()
player.speed(0)
and it will move turtle at once - without animation.