Health Bar -- Blender Game Engine


  
pageok

 
20.  Add an Property Actuator to HealthBar

Note:
The Property Actuator will add 5 health points to Health.

HealthBar selected

Buttons Window menu >> Logic (F4)
Actuators Add
Property Actuator
Type:  Add
Prop:  Health
Value: 5

   
21.  Connect the Message Sensor >> Expression Controller >> Property Actuator

HealthBar selected

Buttons Window menu >> Logic (F4)
Pull wire from brass bump to brass dimple

  
22.  Add a Message Sensor to HealthBar

Note:
Message Sensor receives a message.  This message sensor is triggered by the Subject "Damage_5Points"

HealthBar selected

Buttons Window menu >> Logic (F4)
Sensors Add
Message Sensor
Name:  damage
Subject:  Damage_5Points
       

  
 
  
pageok