chrisyamao
To fade out a sound:
add a tag "volume" to the play action for the sound
add the following global variables and starting values:
vol -10
volMax -10
volMin -50
fadeRate -0.5
Every tick:
System|set vol to clamp(vol+fadeRate,volMin,volMax)
Audio|set volume: tag: "volume" dB: volume
You can adjust the fadeRate to change the speed and direction of the fade.
To fade out all sounds:
Every tick:
System|set vol to clamp(vol+fadeRate,volMin,volMax)
Audio|set master volume: dB: volume