Basically, for a few cutscenes I need the music to get lower or cut completely. The standard fade-out option takes at least 1 second before cutting the music. To bypass this I used the script "AudioManager.fadeOutBgm(0);", basically cutting the music instantly.
However, in cases where I need the music to just get lower I can't use this. I tried using the script "ConfigManager['bgmVolume'] = x;", which lowers it, but at the same time it changes the game options. The same goes for when I raise the volume back to normal, it changes the options.
For example: if the player lowers the BGM volume from the options to 60%, during that cutscene the volume will first be set to, let's say, 50%, and then it will be set to 100% because the ConfigManager will CHANGE the options.
Is there a way to get around this? Maybe getting the value from the options, putting it in a variable and using it as the "x" of the ConfigManager?
However, in cases where I need the music to just get lower I can't use this. I tried using the script "ConfigManager['bgmVolume'] = x;", which lowers it, but at the same time it changes the game options. The same goes for when I raise the volume back to normal, it changes the options.
For example: if the player lowers the BGM volume from the options to 60%, during that cutscene the volume will first be set to, let's say, 50%, and then it will be set to 100% because the ConfigManager will CHANGE the options.
Is there a way to get around this? Maybe getting the value from the options, putting it in a variable and using it as the "x" of the ConfigManager?