Creating a health bar

I need a health bar. While it's easy to create a static one, I was wondering if there's any way to create one that has more or less of the color bar depending on how much health you have. 

If I can do something more than a static image, how far can I go? Can I only set a number, such as 20/70, and have the bar change? Or can I hook it up to some sort of input system?

I apologize if this is a confusing question.

1 comment

Please sign in to leave a comment.