Page 90 - TechPluse_C4_Flipbook
P. 90
Polygon Command
Nonagon Repeat 9 Move 100 Steps Turn 40 degrees
Decagon Repeat 10 Move 100 Steps Turn 36 degrees
DRAWING A SQUARE
To draw a square, the script will be as follows:
Step 1 Click on Events blocks category .
Step 2 Click and drag the when clicked to the script area.
Step 3 Click on Pen blocks category .
Step 4 Click on erase all block and drag it to the script area and snap it to the
script.
Step 5 Now, drag the move 10 steps block and turn 15 degrees block from
Motion blocks menu. Change the values to 100 and 90 respectively. This
becomes Move 100 steps and Turn 90 degrees.
Step 6 Now, drag the block from Control block menu. This will let the
program wait for 1 second before going to the next statement.
Step 7 Repeat Step 4 and 5 three more times.
88 Premium Edition-IV

