• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM why audio track is not 'fading in' but starts at full volume

jobjorgos

Member
I have this in the create event:
Code:
audio_play_sound(snd_xmas_song,10,true);
audio_sound_gain(snd_xmas_song,0,0);
audio_sound_gain(snd_xmas_song,1,10000);
But the song starts instantly at full volume, why and how can I prevent that?
 

jobjorgos

Member
I discovered now the fading in of the volume works if I do this:

Create:
Code:
audio_play_sound(snd_xmas_song,10,true);
audio_sound_gain(snd_xmas_song,0,0);
//audio_sound_gain(snd_xmas_song,1,10000);
alarm[0]=2;
Alarm[0]:
Code:
audio_sound_gain(snd_xmas_song,1,10000);
Beside the fact this is a solution, I still find it strange why it cant be done in just one single event in a single step/frame?
It is more work to make for every track an extra alarm every time...
 
Top