Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 109 - KEC_2615
P. 109

    Blocks                                         Function

                                                          Start  sound () block plays  the  selected  sound
                                                          without  pausing  the  script.  Great  for layering

                                                          multiple sounds at once.

                                   Blocks                                           Function

                                                          Stop all sounds block  stops  all currently  playing
                                                          sounds immediately. Useful for stopping background

                                                          music when switching scenes.

                                                          Change () effect by () block modifies a sound effect
                                                          (like  pitch  or  pan)  by  a  given  value.  Helps  create
                                                          dynamic sound variations.

                                                          set () effect to () block sets a specific sound effect

                                                          (pitch, pan, etc.) to a fixed value.

                                                          clear sound effects block resets all applied sound
                                                          effects, returning the sound to its original state.

                                                          Change volume by () block increases or decreases
                                                          the volume by a specified amount. Useful for fading
                                                          in or out sound.

                                                          Set volume to () % block sets the volume to a specific
                                                          percentage.  Helps  control the  overall loudness  of
                                                          sounds in the project.

                                                          volume block is a reporter  block  that  returns the
                                                          current  volume  level. Useful for adjusting  sound
                                                          dynamically in scripts.

                               SENSING BLOCKS

                     Sensing blocks in Scratch sense the input from the keyboard or the mouse at the

                     time of execution of a script.

                                                                                      Events, Sound and Basic Animation  107

| 104 105 106 107 108 109 110 111 112 113 114 |