Page 78 - CG_v2.1_flipBooks_class_3
P. 78

Sound Block

                  Sound blocks are in pink colour. They control sound functions. We can add music to our
                  Scratch project by using Sound blocks. You can even record your voice and save it. You can
                  play it with a sprite.

                                  block plays  a  sound  without  pausing  the  script.
                    The sound options are “Meow” or recorded sound.

                                       block plays the sound by pausing the script
                    until  the  sound  has  finished  playing.  The  sound  options  are
                    “Meow” or any recorded sounds.

                     To stop all sounds being played on all Sprites, use              block.

                                block clears all existing sound effects.
                  Events Block


                  An event is a happening which occurs due to some other things
                  that happened before it. So, Events block actually control how
                  the blocks in a script will start to run, if a particular action is
                  done. Events blocks control events and the starting of scripts.
                  They are yellow in colour.

                              block activates the script when the green flag or Go
                    button is clicked.

                                  block activates the script when the chosen key is
                    pressed. You can choose from the given keys or you can choose the option any.

                               block activates the script when you click the sprite.


                  Control Block

                  They have looping blocks which are used when the same blocks have to be repeated for a
                  number of times. The most commonly used control blocks are:

                                 block pauses the running of the script for the number of seconds given in the
                    block. You can use this block when two move or speak blocks are coming one after the
                    other.
                      The repeat block repeats a set of blocks for a given number of times. This

                    block is also used to draw shapes where we have to give the same blocks
                    again and again for a number of times.
                                          The forever block keeps on repeating a set of blocks till the stop button
                                        is clicked. This block is similar to repeat block and expands automatically
                                        to accommodate the blocks you snap inside it.





                       76    Computer Genius (V2.1)-III
   73   74   75   76   77   78   79   80   81   82   83