Answers for "how to make a pythoon turtle follow another?"

1

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)
Posted by: Guest on May-04-2021

Code answers related to "how to make a pythoon turtle follow another?"

Python Answers by Framework

Browse Popular Code Answers by Language