Page 51 - Code & Click - 4
P. 51

Block                                             Function



                                           Stops all sounds from playing.


                                           Changes the volume by the specified amount.



                                           Changes the pan left/right or pitch by the specified amount.



                                                                                                   Experiential Learning
               Lab Activity 1

               Let us make the Cat sprite play meow sound 10 times.

                  1.  Open a new project.
                  2.  Create the stack of blocks as shown in the image.

                  3.  Click the Go        button to run the project.
                      The Cat sprite plays the meow sound 10 times and changes its colour each

                      time.





















              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.



                                                                                                                   49
   46   47   48   49   50   51   52   53   54   55   56