Trying to make a new HUD but have lots of difficulties

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
carlcyber
Posts: 163
Joined: Thu Jan 27, 2005 1:04 am

Trying to make a new HUD but have lots of difficulties

Post 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 :twisted:)
User avatar
Sir_Alien
Posts: 863
Joined: Sun Aug 29, 2004 6:15 am
Location: Sydney, Australia
Contact:

Re: Trying to make a new HUD but have lots of difficulties

Post 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?

Code: Select all

CheckInventory("Armor");
User avatar
solarsnowfall
Posts: 1581
Joined: Thu Jun 30, 2005 1:44 am

Re: Trying to make a new HUD but have lots of difficulties

Post by solarsnowfall »

carlcyber wrote:(It looks like this loop is raping the computer :twisted:)
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.
carlcyber
Posts: 163
Joined: Thu Jan 27, 2005 1:04 am

Post 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.
User avatar
Sir_Alien
Posts: 863
Joined: Sun Aug 29, 2004 6:15 am
Location: Sydney, Australia
Contact:

Post by Sir_Alien »

No problem. Good luck! :thumb:
User avatar
Kaiser
Posts: 180
Joined: Thu Jul 15, 2004 8:21 am
Contact:

Re: Trying to make a new HUD but have lots of difficulties

Post by Kaiser »

solarsnowfall wrote:
carlcyber wrote:(It looks like this loop is raping the computer :twisted:)
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.
User avatar
solarsnowfall
Posts: 1581
Joined: Thu Jun 30, 2005 1:44 am

Post 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.
Locked

Return to “Editing (Archive)”