every number [list of commands]
every is just like loop , in that it runs its
[list of commands] forever, but it waits number
seconds between each iteration. Number can be a decimal as well as an integer.
Examples:
every 2 [fd 1 rt 90] would make all the turtles move forward one step,
turn right 90 degrees, and then wait 2 seconds over and over again.
Related commands:
loop repeat
|