Stop sounds, and the mute button
Stop the music, stop the effects, or stop everything from a rule. And the ๐ button players use to mute the lot.
Three ways to stop
| Stop the music | Stops the background music. Sound effects keep playing. |
|---|---|
| Stop sound effects (not the music) | Stops sound effects but leaves the music playing. Advanced. |
| Stop all sounds | Stops every sound that is playing. Advanced. |
All three live in the โช Sound column of the Events tab, like the play actions. They stop what is playing now. They do not stop future rules from playing sounds.
When to stop the music
- At the end: when lives reach 0, Stop the music and play Game over.
- For a dramatic moment: when the boss appears, stop the music, then start the spooky tune.
- You do not need to stop music before starting a new tune. Play music (loops) swaps it for you.
When to stop the effects
A long effect, like an explosion rumble, can run over the start of the next level. Stop sound effects (not the music) on Start of level clears it. Stop all sounds is the big switch for a pause screen or a restart.
The ๐ button
The play bar at the top has a ๐ button. Click it and it becomes ๐. Everything goes quiet: music and effects. Click again and it all comes back at the volume it was. NutHouse remembers the volumes while muted, so your volume rules are not lost.
Players of a shared web page get the same button in the corner of the game, next to โถ Full screen. The mute button is for the player. Your rules cannot press it.
How to add a mute key for players
- Players already have the ๐ button, so a key is a bonus.
- Click + New event, choose โจ Keyboard & mouse, Upon pressing a key, and press M.
- In the โช Sound cell, add Set the volume of Music to 0.
- For an unmute key, add a second rule that sets it back to 100.