Health Bar -- Blender Game Engine


 
pageok


  
1.  Add a new scene

Note:
The health bar will be located in an overlay scene named HUD (Heads Up Display)

User Preference menu >> Scene box
Add New
Add scene
Empty
Give it a unique name
Name:  HUD


 
   
2.  Switch Scenes:  From HUD  to scene with your player

Note:
For this tutorial, the scene with the player is named Scene

User Preference menu >> Scene box
Scene

   
3.  Add an Always Sensor to your Player.  Set to run once

Note:
Always Sensor >> AND Controller >> Overlay Scene Actuator
This loads the HUD with the health bar

Player selected

Buttons Window menu >> Logic (F4)
Sensors Add
Always Sensor
Set to Run Once


 
  
pageok