+ 3
Moving turtles in Python. Need help!
What I want to do is to move a turtle in a regular period of time. It moves, stops and then moves again. The problem is that I have another turtle and I want to keep this one moving. So, two turtles. One moving in regular periods of time and the other one moving continuously.
5 Respuestas
+ 3
Tortello I don't know much about this but you can try using the multiprocessing module.
+ 2
Use random for irregular turtle.
import random
step=0
for i in range(12):
step +=random.randint(0, 50)
It will moving 12 times different distances between 0 to 50.
+ 2
What does the JUMP_LINK__&&__Python__&&__JUMP_LINK say? Thanks for the tip! I found a solution using a timer instead.
ümit Yavuz here's the code. I had success with a timer for one of the turtles.
https://code.sololearn.com/cVxVFtsejcj3/?ref=app
+ 1
ümit Yavuz thanks for your answer. But the problem still...
How to keep the second turtle moving continuously at the same time as the first turtle moves from time to time?
+ 1
I wish see the your code.Maybe then I can help.