Game Development Community

how to create health mana bar ?

by gdyxml2000 · in Torque 3D Beginner · 08/05/2014 (8:51 am) · 3 replies

how to create health mana bar with character in RTS game ?

just like :

data3.whicdn.com/images/130550740/large.png





#1
08/05/2014 (9:42 am)
Within the GUI editor (access it by pressing F10) you can add the GuiHealthBarHud to your PlayGui:

i.imgur.com/zsKwq01.png

I believe you can edit it to show energy as well (if you're using that for your mana).
#2
08/05/2014 (9:44 am)
I'd start by looking at engine/t3d/fps/guiShapeNameHud.cpp (Shows name and health bar over player's head in world). It could be extended to show both health and energy (which could double as "mana" if you wish).

@Mack - that's actually a "HUD" element, not rendered in world-space. But the one three slots down is rendered in world-space over the unit.
#3
08/05/2014 (9:47 am)
@Richard: Ah, yes, you're correct, I was thinking HUD and not world space.