Heart Bar
BackUpAndDown
Member Posts: 685
Hey,
I'm making a game that uses a health bar similar to the zelda and metriod games. Instead of a solid bar that adjusts its length depending of the health of the character I want each health point represented by a "tick" or "heart" image.
I have an idea on how to do this but would like to hear some other suggestions, just so that I know i'm doing it as efficient as possible.
Thanks
I'm making a game that uses a health bar similar to the zelda and metriod games. Instead of a solid bar that adjusts its length depending of the health of the character I want each health point represented by a "tick" or "heart" image.
I have an idea on how to do this but would like to hear some other suggestions, just so that I know i'm doing it as efficient as possible.
Thanks
Comments
When an enemy hits you;
change attribute game.hearts to game.hearts-1
On the third heart have;
if game.hearts is < 3 destroy this actor
Or, if you are planning on the hero being able to regain lives I'd say to put;
if game.hearts < 3 change image to *transparent image*
Otherwise change image to *original heart image*
I think that's about right.