Game Development Community

Question about using T2dsceneobjects in GUI Builder

by B. Spencer · in Torque Game Builder · 05/04/2011 (2:38 am) · 2 replies

Wanted to find out if its possible to use sceneobjects in GUI as I would in the levelbuilder. Want to be able to use the same script commands that work with T2dsceneobjects. I to want to be limited to the GUI control methods only. I have a few ideas on how I want to have a health bar for my game. I don't want to be restricted to just Gui controls only. Anyone have ideas about this?

B Spencer

#1
05/05/2011 (7:20 pm)
Unfortunately, it won't work the same - you need a SceneWindow2D to do any rendering/management with t2dSceneObjects. You aren't required to create your HUD within the GUI system though, you can create it with t2dSceneObjects within the scene itself. The management of, say, clicking on an object will be handled differently, but it's not too difficult.

Alternatively, you can create a combination of Gui controls, particularly the GuiBitmapCtrl and its sister objects that can be used to render the different parts of your HUD.
#2
05/08/2011 (1:43 am)
This health bar is going to be for a platformer game. It would be nice to use just plain old t2dsceneobject. Its just with a 2d side scroller, you have to keep the scene objects in one place while the player is moving. The gui builder seems to be pretty complex, and there's not enough solid info on how to set up huds with health and so forth.

I wonder if its possible to have two sceneWindows at one time?

B Spencer..