Health Bar -- Blender Game Engine


5.  Optional Test:  Add a Keyboard Sensor to your player

The Down Arrow will be used to test removing health from the player.

Buttons Window menu >> Logic (F4)
Sensors Add
Keyboard Sensor
Key:  Downarrow

6.  Optional Test:  Add an AND Controller to your player

Buttons Window menu >> Logic (F4)
Controllers Add
AND Controller
7.  Optional Test:  Add a Property Actuator to your player

The Property Actuator (Type: Add) will remove 5 health points from the Property Health.

Buttons Window menu >> Logic (F4)
Actuators  Add
Property Actuator
Type:  Add
Prop:  Health
Value:  -5

8.  Connect the Keyboard Sensor >> AND Controller >> Property Actuator

Player selected

Buttons Window menu >> Logic (F4)
Pull wire from brass bumps to brass dimples

9.  Start Game Engine

P key
User Preference menu >> Game >> Start Game