Health Bar -- Blender Game Engine


    
pageok
 
  
4.  Add an AND Controller to your player

Player selected

Buttons Window menu >> Logic (F4)
Controllers
Add
AND 

  
5.  Add a Message Actuator to Player

Note:
In the overlay scene HUD, the message sensor is attached to HealthBar and is triggered by the subject updateHealth.

Player selected

Buttons Window menu >> Logic (F4)
Actuators
Add
Message
To:  HealthBar
Subject:  updateHealth

  
6.  Connect the Property Sensor >> AND Controller >> Message Actuator

Player selected

Buttons Window menu >> Logic (F4)
Pull wire from brass bumps to brass dimples


 
   
pageok