Page 75 - Computer - 4
P. 75

Mind Fog          ERROR


             Speakers or headphones must be connected to a computer else the sounds played in a project
             would not be audible.


          Sensing Blocks
          The Sensing blocks are used to check if a specific condition is satisfied or not. These

          blocks are colour-coded light blue. Some of the Sensing blocks are:

                     Block                                              Function

                                       Reports true if a specified key is pressed.

                                       Reports true if a specified colour is touched.


                                       Reports true if a sprite is touching a specified sprite, an edge
                                       of Stage, or mouse-pointer.


              Lab Activity 2
                                                                                                   Experiential Learning
            Let us move the Cat sprite around the stage using arrow keys on
            the keyboard.
             1.  Open a new project.

             2.  In the Scripts area, create the stack of blocks as shown in
                   the image.

             3.  Click the Go           button to run the project.
             4.  Use the arrow keys to move the Cat sprite in different directions.
             5.  Click the Stop           button to end the project.
                   Some sample images are given for your reference.













          Pen Blocks

          The Pen blocks are used to draw on the Stage using the sprite as a pen. These blocks
          are colour-coded dark green. Pen blocks are not present under the Code tab. They
          need to be added to the Code tab.




                                                                                                              73
   70   71   72   73   74   75   76   77   78   79   80