This tutorial/example demonstrates how to make and use a hearts-style health system like you see in the Legend of Zelda games. Unlike most Zelda HP examples, this one splits the hearts into quarters instead of halves.
I tried to make this this example easy to follow and to customize.