Game Development Community

Few questions

by Dewkl · in Torque Developer Network · 05/17/2009 (6:38 am) · 2 replies

I've downloaded the evaluation of TBG 2D, and I have some questions:

1. Is it possible to give global variables to objects? Let's say if I want to make the G-button make 3 different objects in the same group disabled or transparent when pressed.
2. Do I need the TGB 2D Platformer kit to do this? I noticed it mentioned something about grouping/global variables.
3. If so, how do I install the addon? Just normal installation, no activation or anything?

About the author


#1
05/17/2009 (8:37 am)
You can put related objects into a SimSet and just walk through that in your key event for the key in question.

Tools for manipulating SimSets can be found in TSTK.
#2
05/18/2009 (7:42 am)
Quote:Is it possible to give global variables to objects? Let's say if I want to make the G-button make 3 different objects in the same group disabled or transparent when pressed.

You can try to tie the visible property of a GUI control to a global variable (ie $visibilityVar), and then have the button toggle the value for it. Should work.

Quote:Do I need the TGB 2D Platformer kit to do this? I noticed it mentioned something about grouping/global variables.

TGB comes with global variable capability standard ;)

Quote:If so, how do I install the addon? Just normal installation, no activation or anything?

No idea for my part, I never used it- but I have used global variables in TGB...