Health Bar -- Blender Game Engine


 
pageok



 
1.  Switch Scenes from HUD to scene holding your player

Note:
For this tutorial, the Player named Fred is in located in the Scene named Scene

User Preference menu >> Scene box
SCE: Scene

   
2.  Add Property named Health to your player

Note:
The amount is the starting health of your player.  

Buttons Window menu >> Logic (F4)
Add Property
Type: Int 
Name:  Health
Amount: 100


   
3.  Add a Property Sensor to your player

Note:
Property Sensor >> AND Controller >> Message Actuator
When Health changes, the message actuator sends a message to the HUD

Player selected

Buttons Window menu >> Logic (F4)
Sensors Add
Property Sensor
Type:  Changed
Prop:   Health


   
  
pageok