+ 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.

19th Jan 2019, 10:26 PM
Pedro Tortello
Pedro Tortello - avatar
5 Antworten
+ 3
Tortello I don't know much about this but you can try using the multiprocessing module.
20th Jan 2019, 3:20 PM
Shuaib Nuruddin
Shuaib Nuruddin - avatar
+ 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.
20th Jan 2019, 12:13 AM
Ümit YAVUZ
Ümit YAVUZ - avatar
+ 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
21st Jan 2019, 5:09 PM
Pedro Tortello
Pedro Tortello - avatar
+ 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?
20th Jan 2019, 11:52 AM
Pedro Tortello
Pedro Tortello - avatar
+ 1
I wish see the your code.Maybe then I can help.
21st Jan 2019, 2:09 AM
Ümit YAVUZ
Ümit YAVUZ - avatar