22. Hi wait

We learned before how to create a square using the repeat loop , now let's do it
create a square size 50 with turning right
We just enter the loop and the commands were done sequentially so fast that we couldn't follow what's going on inside , in order to follow lets enter the command wait to the loop ,
repeat 4 [wait 10 fd 50 rt 90]
let's write the following command, Let's see where exactly does the turtle wait :)
fd 50 wait 10 rt 90 wait 10 fd 100 rt 30 fd 30 wait 10 fd 200 rt 76 wait wait 10 fd 50
The wait time is 60ths of a second, wait 60 will be exactly 1 second.
set the waiting time to one second and create a square with wait (like in section 2)
Now we will create a program when we set the wait time to 100 milliseconds and create a square and then we set it to 1 second , notice the differences
cs repeat 4 [wait 6 fd 50 rt 90] pu fd 100 pd repeat 4 [wait 60 fd 50 rt 90]
TurtleAcademy learn programming for freeYour browser is not supporting canvasWe recomand you to use Chrome or Firefox browsers