How to make a in game HUD?
by Shane09 · in General Discussion · 02/22/2009 (5:42 pm) · 2 replies
I am working on my in game HUD for my beta/prototype game. I was going to do separate pieces to make up all around the screen. If I were to do this, does anyone know how I would size the HUD to fit the in game screen? Any help is appreciated. Thanks in advance.
P.S. If anyone here has created HUDS, could they possibly leave some tips/advice?
P.S. If anyone here has created HUDS, could they possibly leave some tips/advice?
#2
Take a look at the reticle and the healthbar/energybar HUDS, and see how they work. There's a resource that shows how to do a weapon HUD, and another one for ammo (text readout). Someone did a resource recently that showed how to add healthpack count. There's another resource that shows how to add things like collectable keys to a HUD.
All of those resources are done in script and in combination with the GUI editor. There is also a graphical inventory resource though you'll have to do some searching for the simple script only inventory screen and not the 3d or drag-n-drop inventory resources.
Also check out the GUI sections in the Documentation and on TDN - there's a couple of introductory tutorials on TDN that I found useful and easy to expand upon.
02/23/2009 (4:38 pm)
For the most part your HUD can be done with GUI editor, plus some accompanying support scripts, and of course graphics of your choice. The "stock" gui controls scale rather decently, though you will see some stretching or distortion depending on the initial starting resolution of your HUD elements, some controls tile in order to dynamically size for your screen resolution, and others can be "stacked" or "pieced" together to cover the screen.Take a look at the reticle and the healthbar/energybar HUDS, and see how they work. There's a resource that shows how to do a weapon HUD, and another one for ammo (text readout). Someone did a resource recently that showed how to add healthpack count. There's another resource that shows how to add things like collectable keys to a HUD.
All of those resources are done in script and in combination with the GUI editor. There is also a graphical inventory resource though you'll have to do some searching for the simple script only inventory screen and not the 3d or drag-n-drop inventory resources.
Also check out the GUI sections in the Documentation and on TDN - there's a couple of introductory tutorials on TDN that I found useful and easy to expand upon.
Torque Owner Shane09