|Stop All Sounds|
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.
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 costume to [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
Some users suggest a block which could stop a certain sound.
stop sound [pop v]:: sound stack