How can I make 4 different turtles move at the same time? Also, how to make a person shape for the Turtle.shapemethod? I know there’s a Screen method called register_shape, but I couldn’t find any documentation on it.
def turtles(self, base):
self.t4.goto(self.tFirst)
self.t1.goto(self.tSecond)
self.t2.goto(self.tThird)
self.t3.goto(self.tHome)
if base >= 2:
self.t4.goto(self.tSecond)
self.t1.goto(self.tThird)
self.t2.goto(self.tHome)
if base >= 3:
self.t4.goto(self.tThird)
self.t1.goto(self.tHome)
if base == 4:
self.t4.goto(self.tHome)
tFirst, tSecond an tThird are positions, and t1, t2, t3, t4 are turtles. I want all of the turtles to move in unison.
Here is the documentation for register_shape
As for your first question, I’m not sure exactly what you mean. Making them all move in separate threads would be my first idea, but even then they technically don’t move at the same time. I have never actually used turtle graphics, but just know of the concept.
This does something close to what you are talking about
or