Page 1 of 1
Trying to make a new HUD but have lots of difficulties
Posted: Thu Aug 17, 2006 10:25 am
by carlcyber
Okay, the intention of asking this question is already mentioned on the topic. I'm trying to make a brand new HUD, but I have no idea at all.
I'd be appreciate if anyone could share you experience about this.
Here are my questions:
Can I get the armor points from the players?
Furthurmore, is it possible to make a function that can be triggered only when the player gets hurt? Because using a loop to refresh the health points in a short time looks to be a violent way. (It looks like this loop is raping the computer

)
Re: Trying to make a new HUD but have lots of difficulties
Posted: Thu Aug 17, 2006 3:31 pm
by Sir_Alien
carlcyber wrote:Okay, the intention of asking this question is already mentioned on the topic. I'm trying to make a brand new HUD, but I have no idea at all.
I'd be appreciate if anyone could share you experience about this.
Have a look through
this tutorial if you haven't already.
carlcyber wrote:Here are my questions:
Can I get the armor points from the players?
Re: Trying to make a new HUD but have lots of difficulties
Posted: Thu Aug 17, 2006 3:44 pm
by solarsnowfall
carlcyber wrote:(It looks like this loop is raping the computer

)
That depends, is the loop merely checking the health, or is it checking the health and redrawing the hp display? One looping script shouldn't be that devastating.
Posted: Thu Aug 17, 2006 11:36 pm
by carlcyber
Wow!!! Thanks for giving the tutorial link and the answer, Sir_Alien.
And to solar, thanks for your advice. I understand what you mean.
Posted: Thu Aug 17, 2006 11:44 pm
by Sir_Alien
No problem. Good luck!

Re: Trying to make a new HUD but have lots of difficulties
Posted: Fri Aug 18, 2006 5:57 am
by Kaiser
solarsnowfall wrote:carlcyber wrote:(It looks like this loop is raping the computer

)
That depends, is the loop merely checking the health, or is it checking the health and redrawing the hp display? One looping script shouldn't be that devastating.
Heh, one simple hudmessage loop can be barely handled by zdoom without its fps getting raped.
Posted: Fri Aug 18, 2006 6:25 am
by solarsnowfall
I never, EVER loop hudmessages anymore. There's almost always a way to just update the HUD when it needs to be, rather than looping it constantly.