Horizontal health bars?

Discussions about Coding and Scripting
Post Reply
AlCapowned
Experienced
Posts: 130
Joined: Mon May 16, 2011 2:45 am
Personal rank: Layman

Horizontal health bars?

Post by AlCapowned »

I'm working on a HUD that is similar to those from the console versions of UT. Everything is going well for the most part, but there are a few things I can't figure out at all:

1. How to replace the health and shield indicators with bars instead of using numbers
2. How to change the bars' colors when the player reaches certain health/shield amounts
3. How to limit the number of bars that will appear

In other words, I don't know a single thing about health bars. :ironic:

The only thing I do know is what part of the HUD texture to use for each unit of health. I thought there used to be some health bar tutorials around somewhere, but I haven't been able to find anything. Any help would be great!
User avatar
UnrealGGecko
Godlike
Posts: 2910
Joined: Wed Feb 01, 2012 11:26 am
Personal rank: GEx the Gecko
Location: Kaunas, Lithuania
Contact:

Re: Horizontal health bars?

Post by UnrealGGecko »

There is a tut called "Drawing Health and Armour as Vertical Bars" in this tut pack:
http://www.ut99.org/viewtopic.php?f=3&t=4083
Sorry that I can't help more, I'm not good at coding.
EDIT: nvm, found a copy of that tut here:
https://web.archive.org/web/20130619033 ... l_Bars.htm
Last edited by UnrealGGecko on Fri Mar 02, 2018 10:53 am, edited 1 time in total.
Reason: Fixed the link.
AlCapowned
Experienced
Posts: 130
Joined: Mon May 16, 2011 2:45 am
Personal rank: Layman

Re: Horizontal health bars?

Post by AlCapowned »

Thanks, that's the tutorial I was looking for. :tu:
Post Reply