Health Bar change colors?

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
User avatar
lightman68
Posts: 76
Joined: Fri Aug 19, 2011 4:57 pm

Health Bar change colors?

Post by lightman68 »

Just wonderin'...

by the way, tsup...

I've been epically working on remaking my WAD. I've gone through making the custom HUD. But gawt 1 questiawn though...

Can any of the "Bars" from the "drawbar" thingy in "SBARINFO" change any color when it reaches a certain point like "drawnumber" can?

Here be an example my friends:
Attachments
GIF Health.gif
GIF Health.gif (3.47 KiB) Viewed 627 times
User avatar
lightman68
Posts: 76
Joined: Fri Aug 19, 2011 4:57 pm

Re: Health Bar change colors?

Post by lightman68 »

None know? Welp...

I don't know either. :P
Blue Shadow
Posts: 5039
Joined: Sun Nov 14, 2010 12:59 am

Re: Health Bar change colors?

Post by Blue Shadow »

The way I usually do it involves dummy inventory items, ACS and SBARINFO's InInventory command. And of course, DrawBar command.

I could create an example wad if you want.

Edit: Here you go...
colored_hp_bar.pk3
(4.1 KiB) Downloaded 117 times
Make sure you use ZDoom's fullscreen hud to see the bar.
User avatar
Demolisher
Posts: 1749
Joined: Mon Aug 11, 2008 12:59 pm
Graphics Processor: nVidia with Vulkan support
Location: Winchester, VA
Contact:

Re: Health Bar change colors?

Post by Demolisher »

I also use dummy inventory items. You can even make animations and blinking indicators using this, as well as dynamic boss bars that "shake" when the boss is damaged, or blood splats on screen.
User avatar
lightman68
Posts: 76
Joined: Fri Aug 19, 2011 4:57 pm

Re: Health Bar change colors?

Post by lightman68 »

Thank ya guys! Your help is much appreciated :D
Locked

Return to “Editing (Archive)”