I am wondering how to create a time delay with the turtle function. Would it be part of a function that loops to create one when needed?
Are you looking for something like this ?
import turtle
t = turtle
t.forward(100)
t.delay(1500)
t.forward(100)
Don't hesitate to read the Documentation
As @dallonsi said, delay() is the function for slowing down the turtle, and if you want to specify a delay time, the number inside the () are milliseconds, so 1000 is one second. In @dallonsi's example, 1500 is 1.5 seconds. Hope this helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.