Skip to main content

Sound blocks

Sound blocks play the sounds attached to a sprite or the stage, and control volume and audio effects. Add and edit sounds in the Sounds tab. For playing musical notes and drums, use the Music extension instead.

Playing sounds

  • play sound Meow starts a sound and immediately continues to the next block (the sound keeps playing in the background).
  • play sound Meow until done starts a sound and waits until it finishes before moving on.
  • stop all sounds stops every sound playing across the project.

Volume

  • change volume by -10 / set volume to 100 % adjusts or sets this sprite's volume.
  • volume reports the current volume as a percentage.

Audio effects

  • change pitch / pan left/right effect by 10 adjusts a sound effect.
  • set pitch / pan left/right effect to 100 sets a sound effect. Pitch changes playback speed and tone; pan moves the sound between the left and right speakers.
  • clear sound effects resets pitch and pan back to normal.

See also