How do I pick a pathfinding object type, and set a life bar that sits at the top of each object, noting that there are several objects of the same type for each new object must have an individual life bar, want there to be two rectangles one green and one red, where every health damage from the enemy object withdraw certain amount of life and thus appears red part of the bar and the green part is reshaped so as to verify that there has been loss of health.