Master Cabalist
Member
I have a slider I created to change the audio gain for music in my game. It returns values between 0.05 and 85.
I also have a step event in an object that is supposed to change the music gain according to the slider's value.
Problem is, no matter what audio_sound_gain is set to, it doesn't change the volume of the music.
I also have a step event in an object that is supposed to change the music gain according to the slider's value.
Code:
///meter for music
music_volume = global.slider_percent/200;
show_debug_message("MUSIC VOLUME:" + string(music_volume));
audio_sound_gain(WinMusic, music_volume,0);
audio_sound_gain(PlayerDeath, music_volume, 0);
audio_sound_gain(RockIntro, music_volume, 0);
audio_sound_gain(Level1Music, music_volume, 0);