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?
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?
#2
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.
TGB comes with global variable capability standard ;)
No idea for my part, I never used it- but I have used global variables in TGB...
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...
Torque 3D Owner Ronny Bangsund
Torque Cheerleaders
Tools for manipulating SimSets can be found in TSTK.