Health Bar Demo

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

Health Bar Demo

Postby EvanBlack » Sun Oct 02, 2011 11:09 pm

This is my version of doing health bars with GE.

There is source to another way inside the demo but it is broken and commented out. If you understand how it works and can fix it, or would rather use it, it is in the ManaBar actor, just look at the script.

This shows 3 different health bars:
    Health Orb
    Horizontal Health Bar
    Vertical Health Bar

The skull button is poison, with a displayed timer. Poison will never reach 0 hp. But if you use the down hp button and set to 0 then the health will no longer be poisoned. I did this on purpose.

Four health variables, Two types: INT and FLOAT, the reason is because I used INT for the first version and FLOAT for the newer version. Health should always be done in FLOAT but for some reason MAXHP has to be an INT... Look in the HealthBar script to see why.

The Horizontal and Vertical Health bars change color from Green to Yellow then Red as Health depletes.
Attachments
DemoScreenshot.jpg
HealthOrbDemo.rar
(81.24 KiB) Downloaded 269 times
(\__/) ( Soon... The world)
(O.o )< will be mine!____)
(> < )
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bunny Overlord 2012!
EvanBlack
 
Posts: 202
Joined: Fri Sep 30, 2011 10:17 am
Score: 19 Give a positive score

Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest