how to make a pythoon turtle follow another?
t1 = turtle.Turtle() #creating turtles
t2 = turtle.Turtle()
x = t1.xcor() # getting t1 coordinates
y = t1.ycor()
angle = t2.towards(x,y) # finding the angle
t2.setheading(angle)
t2.forward(75)
how to make a pythoon turtle follow another?
t1 = turtle.Turtle() #creating turtles
t2 = turtle.Turtle()
x = t1.xcor() # getting t1 coordinates
y = t1.ycor()
angle = t2.towards(x,y) # finding the angle
t2.setheading(angle)
t2.forward(75)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us