trying to make music fade out when I change rooms! [SOLVED]

pixeltroid

Member
I specify the music for each room in the room creation code.

So a typical room would have this code in its creation code:

Code:
audio_stop_all();
audio_play_sound(ost_5, 8, true);
This code works in that it stops the previous rooms music and plays the present rooms music (ost_5). The problem is that the previous rooms music stops abruptly and feels "off".

How do I make it so that the previous rooms music slowly fades out?

Any help would be appreciated! thanks!
 
Top