I have an object, let's call it 'ant', and I made it move, and every 10 second I make a clone of it, but the clone doesn't follow the same function that the ant had.
Is there a way to make the clones follow the same function? There will be about 10 or 20 more clones.
import turtle
import random
#make a variable moves and create an object ant
moves = 0
ant = turtle.Turtle()
#I make the direction of the ant random
ant.setheading(random.randint(0, 360))
#create A definition that makes the ant move and creates a clone
def move():
ant.forward(10)
if moves == 10:
ant.clone()
else:
moves += 1
move()