I need a life bar where if the person gets the other person his health goes down. I now this is possible because I saw it in a program called tanks by Tanks&Unicorns.
A health bar is just a counter with a different type of display (image). Instead of textual content, it uses a visual representation of its value. So, create a counter class and have its image set appropriately depending on the value of the counter.