Basic Health Bar

41. Add an And Controller to Player
  • Logic Editor >> Controllers >> Add Controller >> And
42.  Add a Scene Actuator to Player
  • Logic Editor >> Actuators >> Add Actuator >> Scene
  • Mode: Add Overlay Scene
     
  • Scene: HUD
Note:
  • We are adding the new scene HUD as an overlay scene
43. Connect Logic Bricks
  • Always Sensor >> And Controller >> Scene Actuator
Note:
  • To connect logic bricks, pull a 'wire' from one logic brick output to another logic brick input
44. Add a game property to your player 
  • 3D View >> Select Player
  • Logic Editor >> View >> Properties
     
  • Properties tab >> Add Game Property button
34. Game Property
  • Logic Editor >> Properties tab >> Property Name: Health
     
  • Logic Editor >> Properties tab >> Property Type: Integer
     
  • Logic Editor >> Properites tab >> Property Value: 100
Note:
  • I named my game property Health
     
  • The starting health value for my player is 100