Health Bar -- Blender Game Engine



pageok

 
1.  Switch Scenes:  HUD

Note:
The health bar will be located in an overlay scene named HUD

User Preference menu >> Scene box
HUD


  
2.  Add a Camera to the HUD

Note:
To make things easy, I will be positioning the camera at [0.0, 0.0, 2.0] with a rotation of [0.0, 0.0, 0.0]

Add camera   
Spacebar >> Add >> Camera
or
User Preference menu >> Add >> Camera

Position Camera
Transform Properties
N key
or
3D View menu >> Object >> Transform Properties
Location
LocX = 0.0;  LocY = 0.0;   LocZ = 2.0
Rotation       
RotX = 0.0;  RotY = 0.0;  RotZ = 0.0

 
 
   
3.  Add a Plane
   
Note:
The plane will become the health bar named HealthBar.

Note:
To make things easy, I will be positioning the plane at [0.0, 0.0, 0.0] with a rotation of [0.0, 0.0, 0.0]

Add plane
User Preference menu >> Add >> Mesh >> Plane
or
Spacebar >> Add >> Mesh >> Plane

Position plane  -- Plane selected -- Object Mode
Transform Properties
N key
or
3D View menu >> Object >> Transform Properties
Location
LocX = 0.0;  LocY = 0.0;  LocZ = 0.0
Rotation       
RotX = 0.0;  RotY = 0.0;  RotZ = 0.0
Name  
HeathBar

 

 
 
pageok