In other languages

Help the wiki!

The Scratch Wiki is made by and for Scratchers. Do you want to contribute?

Learn more about joining as an editor!

See discussions in the Community Portal

Stop All Sounds (block)

Stop All Sounds
2.0 Stop All Sounds.png
Category Sound
Type Stack

The Stop All Sounds block is a Sound block as well as a Stack block. The block will stop any sounds currently being played on all sprites and the Stage. Pressing the Stop button will also stop all sounds, but is rarely used as it also stops all the other scripts running in the project.

Example Uses

As this block stops all playing sounds, it is widely used when a music track (and sound effects) must cease. This is often for events such as pausing the project or muting it.

Some common uses for the Stop All Sounds block:

  • Stopping any playing sounds before the project moves to the next scene (used in animation)
When I receive [attack v]
stop all sounds
play sound [Jaws music... v]
broadcast [Shark! v]
  • Stopping songs that are playing in a music player project
When I receive [pause v]
stop all sounds
switch to costume [not playing music v]
  • In a project that gives you the option for music or not, turning off the music
when gf clicked
forever
  if <(mute) = [Yes]> then
    stop all sounds
  end
  • This page was last modified on 11 February 2014, at 04:37.