Game Development Community

Guiprogressctrl as a healthbar?

by James Ford · in Torque Game Builder · 05/05/2007 (5:59 pm) · 1 replies

I would like a gui healthbar and the guiprogressctrl seemed the most applicable of the predefined controls, does anyone have experience using guiprogressbar? Or a better idea for a healthbar? I noticed TGE has a healthbar gui why doesnt TGB?

#1
05/05/2007 (6:48 pm)
It would be cool for TGB to have built in progress bars... what I did was made my own class (now a behavior!) to draw progress bars out of multiple sceneobjects. Each bar gets its own scenewindow to draw the health, and I use physics to move the bar to whatever value it needs to be set to. This way the bars can be mounted to any object. It isn't perfect but seems to be working. Guiprogressctrl also works, but is less flexible.