Health Bar -- Blender Game Engine

 
   



 

 
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:
style="color: rgb(51, 51, 153);">
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


 
  
The Blender 3D and game engine tutorials were created as a series of step by step instructions and help you create computer games. Use the tutorials to make casual video games, First Person Shooter games, role playing games, racing simulation games and more. Use the tutorials as a self paced learning tool to model and program your own three-dimensional world and then play on your computer.