Volume sliders

Started by Edwin Xie, Tue 06/07/2004 01:09:21

Previous topic - Next topic

Edwin Xie

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.
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

TerranRich

Did you check the AGS manual? Look for "volume" or "SetVolume" or something to that respect.
Status: Trying to come up with some ideas...

Scummbuddy

- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Edwin Xie

Can this work?
Code: ags

if (interface == 4) {
Ã,  //Volume slider on the VOLUME GUI
Ã,  if (button == 0) SetMusicVolume(GetSliderValue(4,0))
Ã,  if (button == 0) SetSoundVolume(GetSliderValue(4,0))Ã,  
}
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

Phemar

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.

Edwin Xie

I already found that out. Thanks for telling me though.
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

SMF spam blocked by CleanTalk