Add a Plane to an Overlayed scene at the place you want your health bar
Later, you can refine it!
Make a little scale animation with the mesh, let’s say 10 frames! At frame 10 the bar is at the maximum ------------------- and at frame 1 the bar is short –
Now in the main scene select the object that will “carry” the bar and add a Ex: a collision Sensor linked to a Message actuator with a “life” name in the subject field.
Now in the bar scene, add a Int property to the Plane object and name it “bar”
Add a Message Sensor with “life” in the subject field linked to a Property Actuator - Add- prop:bar value -1
Add a Property Sensor - changed -prop: bar , linked to a Ipo Actuator - Property- prop: bar
This way when the main “object” collides with whatever, the life bar will decrease …i hope
Is this clear??