Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: InCreator on Mon 09/06/2003 22:38:45

Title: A slider crash!
Post by: InCreator on Mon 09/06/2003 22:38:45
Made a new GUI for game settings.
Added a slider and modified the slider spinner image, putting 8x8 sprite there.

In script, slider should change SetMusicMasterVolume (at the moment when "return" button (also on this gui)) is pressed (just before InterfaceOff command), and set the volume according to slider value.

But in game, moving slider just crashes the game and returns to  Windows.



No error messages nor anything else like that is displayed and game compiles normally.
What's wrong? (Ags 2.55)  ???

Am I really stupid to have some script misktake somewhere or does anyone else met same problem?
Title: Re:A slider crash!
Post by: Pumaman on Tue 10/06/2003 22:21:40
If you remove your custom image from the slider, does it still crash?

What's your script for the slider in  interface_click ?
Title: Re:A slider crash!
Post by: InCreator on Wed 11/06/2003 22:35:06
Oh, I'm sorry that I started this topic and wasted your time, CJ. I just didn't know that slider is controlled as
(button == x) and just thought I don't need any
checking for slider. It's fixed now, according to AGS Demo Game.