Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ytterbium on Mon 26/01/2004 20:54:21

Title: Game Speed Sliders
Post by: Ytterbium on Mon 26/01/2004 20:54:21
I'm completely clueless as to how I should make one. Does anyone know?
Title: Re:Game Speed Sliders
Post by: strazer on Mon 26/01/2004 21:15:31
It's quite easy in fact.

Just put a GUI Slider object on a gui, set it's min and max values (default game speed is 40), maybe min 10 max 70.

Then add to your interface_click function:

...
if (interface == 3) {  // gui the slider is on
  if (button == 0) SetGameSpeed(GetSliderValue(3,0)); // on left mouse click; 3=number of gui, 0=number of slider
}
...

Chris
Title: Re:Game Speed Sliders
Post by: Ytterbium on Tue 27/01/2004 21:22:27
Thank you. I appreciate it.