Page 57 - Code & Click - 3
P. 57

Knowledge Discovery                                                                 Subject Enrichment


               Some blocks                     have a white editable text field inside them. Click inside the

               field to change the value. Some blocks                        have a drop-down list arrow inside

               them. Click the down arrow to open the list and select an option from it.

                                                                                                   Experiential Learning
               Lab Activity 1

               Let us move and turn the Cat sprite.

                  1.  In the Blocks palette, click the Motion category.

                  2.  Drag the Move                    block from the Blocks palette to the Coding area.
                  3.  In the text field of the Move block, type the required number of steps, say 50.

                  4.  Drag the Turn left                       block from the Blocks palette to the Coding

                      area. A grey highlight indicates where the block can be stacked.
                  5.  Stack the Turn left block under the Move block.

                  6.  In the text field of the Turn left block, type 90.
                  7.  Click the top block to execute the script.

                      The Cat sprite moves forward 50 steps and then turns left by 90 degrees.





























                             Stage before execution of script        Stage after execution of script


              Looks Blocks

              The Looks blocks are used to change the appearance of a sprite, make it speak and
              think. These blocks are colour-coded purple.

                                                                                                                   55
   52   53   54   55   56   57   58   59   60   61   62