Page 85 - Trackpad_ipro 4.1_Class6
P. 85

Look at these polygons that can be made using Repeat block.

                                     Polygon                               Command

                             Triangle                   Repeat 3 Move 100 Steps Turn 120 degrees

                             Square                     Repeat 4 Move 100 Steps Turn 90 degrees


                             Pentagon                   Repeat 5 Move 100 Steps Turn 72 degrees


                             Hexagon                    Repeat 6 Move 100 Steps Turn 60 degrees

                             Heptagon                   Repeat 7 Move 100 Steps Turn 51 degrees


                             Octagon                    Repeat 8 Move 100 Steps Turn 45 degrees

                             Nonagon                    Repeat 9 Move 100 Steps Turn 40 degrees


                             Decagon                    Repeat 10 Move 100 Steps Turn 36 degrees




                  Tech


                     Funda


                                   Use the Hide block to hide the sprite after drawing the shape.



                     DRAWING A SQUARE IN SCRATCH

                 Now you will learn how to draw a square in Scratch. The steps are given below:
                 Step 1  Click on Events blocks category         .


                 Step 2  Click and drag the   when     clicked   block 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  Next click on Control blocks category        .
                                              repeat   10
                 Step 6  Click and drag the                 block to the script area. Snap it to the script.


                 Step 7  Click on Looks blocks category         .

                 Step 8  Click and drag the  hide    block to the script area and snap it inside the repeat block.

                 Step 9  Click and drag the       pen down  block to the script area and snap it to the script.






                                                                          Scratch Programming—Game Creation      83
   80   81   82   83   84   85   86   87   88   89   90