Game Development Community

GUI and changing an objects variables.

by TerrenceB · in Torque Game Builder · 11/14/2009 (5:34 pm) · 1 replies

Hi,
Been combing over the vast amount of information in the forum and on TDN. Been working on many of the tutorials.

Can someone give me a clear example of how I can use a slider bar to allow the user to adjust a variable of an scene object?

What I want to do is create a number of scene objects that represent territories on a map. Each scene object stores 20+ variables. The player will be able to adjust 12 or so variables with sliders.

At turn end, these changes will be processed by functions resulting in further changes to more variables stored in the scene object.

A player may access several territories and make changes in any given turn.

So if someone can explain by example how to take the slider input and apply to a scene object I would appreciate it.

Thanks

#1
11/15/2009 (8:46 am)
Let's take the fish game for example. Let's say I have a slider control that I just drop into the maingui file and I want it to effect the speed of our playerFish.

How would you make this work?

Like I said, I just need an example so that I can understand it for my own application.

Thanks