I'd like to have it so that the background music can change depending on what level the player is on. However, I want to avoid harsh stops for one song to begin another, so I'd like to take one of two approaches.
1. Make the current music fade out, and when its finished, then play the new music instead.
2. Have the new music wait in line until the current music file is finished playing, then play the new music.
I can't figure out any ways to do either. Any suggestions?
ID:159853
![]() Jan 2 2009, 2:25 pm
|
|
![]() Jan 2 2009, 3:20 pm
|
|
Could be something to mess around with, but how about doing it like iTunes has it where at the end of the song it starts fading out but the new one is already fading in.
|
Well, to fade in/out in general you just have to edit the sound datum's volume var. You will need to tell DM when to begin fading, etc. though.
var/list/music = list('n1.midi' = 100,'n2.midi' = 200) I'm not sure if that will work, but it would be worth a try. |