L
Lok_OS
Guest
Hello. I've programmed a settings menu which lets you, among other things, toggle the sound effects and music on/off.
The easiest way I found to do that was to have it unload/load the separate audio-groups that I had created for music and sounds. This way, instead of putting
and "if" statement at the start of ever audio_play, the sound will just not play if the audio group is unloaded.
My question is, is this a good way to do it? Will there be any long term repercussions?
I noticed that in the Compile, every time it tries to play a sound that's unloaded, it will display a "Audio Group is not loaded" message, now seeing how
this is not your typical error message that shows up in the game window it doesn't seem to matter? Maybe?
What are the negative side effects of this, if any? Will this be something that negatively affects how the game runs or will it work fine?
Thanks.
The easiest way I found to do that was to have it unload/load the separate audio-groups that I had created for music and sounds. This way, instead of putting
and "if" statement at the start of ever audio_play, the sound will just not play if the audio group is unloaded.
My question is, is this a good way to do it? Will there be any long term repercussions?
I noticed that in the Compile, every time it tries to play a sound that's unloaded, it will display a "Audio Group is not loaded" message, now seeing how
this is not your typical error message that shows up in the game window it doesn't seem to matter? Maybe?
What are the negative side effects of this, if any? Will this be something that negatively affects how the game runs or will it work fine?
Thanks.