animate lifebar depending on player health