I was discussing with my partner as to the direction we wanted to go with our game and we came to a consensus to avoid using numbers wherever possible. With that in mind, I was hoping you lovely people here on the forums could help with my dilemma.
To cut a long story short, I was wanting to have a graphic show how much health the player has remaining, but I cant figure out how to attach a graphic to a variable. Basically we are shooting for a life bar similar to the ones used in the old Megaman X games. For instance, if the player has 20 health remaining out of 30 maximum the bar would show 20 horizontal bars out of a possible 30 bars. Any help on how to create a connection between the sprite and the health would be greatly appreciated.
As a side note, we also want to have pick ups that increase the value of the maximum health too. So if someone knows of a way to simplify the graphic so that we don't have to keep replacing it that would be awesome as well.
Thanks for the help,