A slider crash!

Started by InCreator, Mon 09/06/2003 22:38:45

Previous topic - Next topic

InCreator

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?

Pumaman

If you remove your custom image from the slider, does it still crash?

What's your script for the slider in  interface_click ?

InCreator

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.


SMF spam blocked by CleanTalk