Page 50 - Code & Click - 4
P. 50

Control Blocks
              The Control blocks, colour-coded orange, are used to control the scripts.

                 Block                                             Function

                           Waits for a specified number of seconds before moving to the next block.


                           Repeats the enclosed stack of blocks for a specified number of times.



                           Repeats the enclosed stack of blocks until the script is stopped.



                           Executes the enclosed stack of blocks if the specified condition is True.



                           Executes the enclosed stack of blocks if the specified condition is True else
                           executes the other stack of blocks.



              Events Blocks
              The Events blocks, colour-coded yellow, are used to sense events, which cause scripts
              to execute.

                     Block                                             Function


                                     Executes the script when the Go button is clicked.


                                     Executes the script when the specified key is pressed.


                                     Executes the script when the associated sprite is clicked on Stage.



              SOME MORE SCRATCH BLOCKS

              Let us learn about some more categories of blocks available in Scratch 3.

              Sound Blocks
              The Sound blocks are used to play sounds. These blocks are colour-coded bright purple.

              Some of the Sound blocks are:


                         Block                                             Function


                                           Plays a sound and resumes the script after the sound ends.



                                           Plays a sound without pausing the script.


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