How to Fade Out Music Smoothly at Level End in Scratch
📌 What you will learn
Lower volume by -10 ten times, stop all sounds, then restore volume to 100%.
Minimal Working Block Recipe
Lower volume by -10 ten times, stop all sounds, then restore volume to 100%.
Test this minimal version first, then tune numbers like speed, gravity, or timing to match your game feel.
Fade Out Music Smoothly at Level End script
- repeat 10: change volume by -10, wait 0.1 seconds
- stop all sounds
- set volume to 100%
Try it: Polished audio endings.
Debugging Checklist & Next Steps
If it behaves unexpectedly, verify initial variable resets on the green flag and check that continuous checks sit inside a forever loop.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.