Health Bar -- Blender Game Engine




 
6.  Add an AND Controller to Player

Player selected

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

    
7.  Add a Message Actuator to Player

Note:
We are sending the message to a Message Sensor connected to HealthBar.
It is triggered by the Subject "Damage_5Points"

Player selected

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

   
8.  Connect the Keyboard Sensor >> AND Controller >> Message Actuator

Player selected

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

   
9.  Start Game Engine

P key
or
User Preference menu >> Game >> Start Game  

Use Uparrow key to increase health.  Downarrow key to decrease health.


  
  
Download free seamless game textures or you can create your own seamless game textures. Use reference photos to add realism to the seamless texture you create. Textures let you create the style and mood for your computer game. Textures are a way to add detail and color to 3D graphics. Photo realistic textures add realism. Download free game models for your video game or create your own game models. Use the game models in First Person Shooter, role playing games, racing simulations and more. Download free textures to add detail to your game models. You can use the free game models you downloaded or model your own game models.