Health Bar for enemies?
by dragonlady · in Technical Issues · 02/12/2008 (7:20 am) · 1 replies
Hello again,
Sorry for all the questions lately! I'm still pretty dense about a lot of stuff ;) I was wondering, is there a way to add a health bar over an enemy character, without using GuiControl and PlayGui? My understanding is that whatever GUI profiles you set up in the Gui Editor are constantly on screen. For instance, a health bar for the player will always be in a static location. Am I right? I have an enemy character who will not always be on screen, so I want to have a health indicator like right above him, so that it moves with him.
I am working with the Torque demo engine, so I will not be able to change any C++ source code, unfortunately. Are there any suggestions on how I can accomplish this with just Torque Script and maybe the Gui Editor?
Thanks :)
Sorry for all the questions lately! I'm still pretty dense about a lot of stuff ;) I was wondering, is there a way to add a health bar over an enemy character, without using GuiControl and PlayGui? My understanding is that whatever GUI profiles you set up in the Gui Editor are constantly on screen. For instance, a health bar for the player will always be in a static location. Am I right? I have an enemy character who will not always be on screen, so I want to have a health indicator like right above him, so that it moves with him.
I am working with the Torque demo engine, so I will not be able to change any C++ source code, unfortunately. Are there any suggestions on how I can accomplish this with just Torque Script and maybe the Gui Editor?
Thanks :)
Torque 3D Owner John Eckhardt
Just a tip to how people would do this with the engine code: Edit the guiShapeNameHud to display a health bar for each object that it displays the name also. And the code to display the health bars is in guiCenterNameHud