Ich möchte gerne das die Musik sobald das Hauptmenü erscheint ausfadet und nicht abrupt abbricht.
Das steht in der Music.wdl:
Code:
function intro_music()
{
intromusic = media_play("fx/intro.mp3", NULL,volume_music);
}
Und das steht in der Hauptmenue.wdl:
Code:
media_stop(intromusic);
Ich dachte an irgendwas mit:
Code:
while(media_playing(intromusic) == 1)
{
volume -= 1;
media_tune...
}
Aber das geht nich ganz auf.
Was könnte ich tun?
Danke im Vorraus
Gruß
----------------
I want that my music fades out when the main menu appears. At the moment it stop s suddenly during its played.
Here´s the code who stars music in Music.wdl:
Code:
function intro_music()
{
intromusic = media_play("fx/intro.mp3", NULL,volume_music);
}
An thats the code who stops it. Hauptmenue.wdl:
Code:
media_stop(intromusic);
I thought of an solution like this:
Code:
while(media_playing(intromusic) == 1)
{
volume -= 1;
media_tune...
}
but thats not really working
What can i do?
Thank you and greetings