Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Sir Bob on Sun 04/12/2005 05:14:44

Title: Slider Questions
Post by: Sir Bob on Sun 04/12/2005 05:14:44
Having problems with Slider.

Error:
"underdefined symbol 'sldVolume'"

Script:
#sectionstart slidesound_change
function slidesound_change(GUIControl *conrol, MouseButton slider)  {
 
  SetSoundVolume(sldVolume.Value);
}
#sectionend slidesound_change
Title: Re: Slider Questions
Post by: Akumayo on Sun 04/12/2005 06:27:35
make sure sldVolume is assigned as the name of your slider.
Title: Re: Slider Questions
Post by: Elliott Hird on Sun 04/12/2005 12:06:10
it looks like slidesound, why not use that?
Title: Re: Slider Questions
Post by: Sir Bob on Sun 04/12/2005 17:05:44
Error:
"Error: run_text_script1: error -1 using 'slidesound_change':
Wrong number of parameters to exported functions 'slidesound_change' (expected 2, supplied 1)

Script:
#sectionstart slidesound_change
function slidesound_change(GUIControl *conrol, MouseButton slider)Ã,  {
Ã, 
Ã,  SetSoundVolume(slidesound.Value);
}
#sectionend slidesound_change


And, how do you cange what messageboxes look like?
Title: Re: Slider Questions
Post by: Ashen on Sun 04/12/2005 17:21:52
Slider functions don't have the MouseButton parameter - it should look like::

#sectionstart slidesound_change
function slidesound_change(GUIControl *control)  {

  SetSoundVolume(slidesound.Value);
}
#sectionend slidesound_change


Where did that function come from - did you paste it in from somewhere else? (Just curious, as auto-created ones wouldn't have had the extra parameter.)


You mean the black and white box when you call Display("text"); (or 'Display message' from the interaction ediitor)? You need to create a custom Text Window GUI - look up "Customized Text Windows" in the manual.