I was wondering how I can use volume sliders. What do I add to my script so the volume slider would work? Forgive me if this topic hass been asked before but I checked the search engine and nothing was related to this.
Did you check the AGS manual? Look for "volume" or "SetVolume" or something to that respect.
quick search of a not to long ago post is here:
http://www.agsforums.com/yabb/index.php?topic=11272.msg135399;topicseen#msg135399
Can this work?
if (interface == 4) {
Ã, //Volume slider on the VOLUME GUI
Ã, if (button == 0) SetMusicVolume(GetSliderValue(4,0))
Ã, if (button == 0) SetSoundVolume(GetSliderValue(4,0))Ã,Â
}
if (interface == 4) {
//Volume slider on the VOLUME GUI
if (button == 0) SetMusicVolume(GetSliderValue(4,0));
}
Don't forget your semi-colons and remove one if condition.
I already found that out. Thanks for telling me though.