Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Edwin Xie on Tue 06/07/2004 01:09:21

Title: Volume sliders
Post by: Edwin Xie on Tue 06/07/2004 01:09:21
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.
Title: Re: Volume sliders
Post by: TerranRich on Tue 06/07/2004 01:41:09
Did you check the AGS manual? Look for "volume" or "SetVolume" or something to that respect.
Title: Re: Volume sliders
Post by: Scummbuddy on Tue 06/07/2004 03:07:58
quick search of a not to long ago post is here:
http://www.agsforums.com/yabb/index.php?topic=11272.msg135399;topicseen#msg135399
Title: Re: Volume sliders
Post by: Edwin Xie on Sat 14/08/2004 22:13:51
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))Ã, 
}
Title: Re: Volume sliders
Post by: Phemar on Sun 15/08/2004 17:42:46

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.
Title: Re: Volume sliders
Post by: Edwin Xie on Mon 16/08/2004 02:51:22
I already found that out. Thanks for telling me though.