A completely adjustable LifeBar that does not contain any pieces.
* V1.1 now with colour *
I'm currently working on a solution for the sprite overlay problem, if anybody has an idea please tell me =)
Lenght, Height and the position of the LifeBar are controlled by variables and can easily be adjusted to your own game.
Any problems, comments, ideas, suggestions or criticism? Contact me or leave a comment, i'd love to further improve this project, as well as i'll help you with any problems with it ^^
Feel free to use this LifeBar for your own projects and if you do, please remember to mention that you took it from here ;)
*~ Important Notice ~*
If you want to use this LifeBar for your own projects, you'll have to specify the following variables: - length (pixels) : controls the length of the LifeBar - height (pixels) : controls the heigth of the LifeBar - x middle (coordinate) : sets the center of the LifeBar (right/left) - y middle (coordinate) : sets the center of the LifeBar (up/down)
If you change one of these variables, make sure that you reset the LifeBar.
During game, the LifeBar will automatically react to any changes made to the following variables: - HP : currently HealthPoints of the subject - HPmax : maximum HealthPoints of the subject
Please note that you should only change these two variables when the LifeBar is currently not in action, otherwise multiple problems will occur. Therefore you can use the two "work" variables, have a look at the "+"-Button to find out what i mean. ;)
Any problems with fitting the LifeBar into your project? I will help you, just leave a note =)
*~ Version History ~*
V1.1: - added colour effect - improved bar behaviour for HPmax < HP - a few small improvements in the programming structure
Comments
You need to be logged in to post comments
Add a Comment
Wow!
(view all replies)Comment Reply
Cool! Can I use this?
(view all replies)Comment Reply
Nice. Very useful.
(view all replies)Comment Reply