programming a health bar


  • Posts: 166
Hello. My game has two health bars, well I call the second a shield bar. I want them put on the scene as HUD anchored to the screen. The health bar of the main character is dependent on the shield bar of the character. So when the shield goes down the health is also falling of course when the main character is hit by missiles.

How do I program this in stencyl?

How do I program each health bar with border backround and foreground rectangles that represent 0% to 100% health/shield?