Music Volume Fadein and Fadeout


(fedyfausto) #1

like title, how can i do it? :slight_smile:


(Alex Larioza) #2

You can manually fade out the volume by changing the volume property of the relevant Sfx object.

Another method would be to use a SfxFader. For example, the following fades out the sfx object β€œmusic” over a course of ~3 seconds:

var fader:SfxFader = new SfxFader(music);
fader.fadeTo(0.0, 3.0);

(Zachary Lewis) #3

Moved to the appropriate category.


(Joseph Sweeney) #4

You can also modify FP.volume to alter the master volume.