Health bar

A bar that shows how much health or energy is left. It empties from the side, or from the bottom up.

Chocobreak โ€” NutHouse
A new Health bar with Starts at, Full at, Width, Height, Colour, Empty colour and the Fills from the bottom up tick box
A new Health bar. Starts at and Full at set the numbers; the rest is looks.

What a health bar is

A number drawn as a bar. 100 fills it. 0 empties it. Use it for the hero's health, a boss's health, fuel, or a power meter that charges up.

Health bar appears in Advanced and Expert mode.

How to add one

  1. Switch to Advanced at the top if you are in Simple.
  2. Click + Add object, then New, then Health bar.
  3. Set Full at to 100 and Starts at to 100.
  4. Pick a Colour (green) and an Empty colour (dark red).
  5. Add rules that take some away and a rule for when it is empty.

What the settings mean

Starts atHow full it is when the level begins.
Full atThe number that means completely full.
Width and HeightIts size in pixels. Wide and short for health; tall and thin for a power meter.
ColourThe filled part.
Empty colourThe part that has gone.
Fills from the bottom upTick it and the bar stands upright and fills upwards.

Rules for the bar

Take some away from the bar Fill the bar up Set the bar Bar is empty Compare the bar

WhenHero collides with Spikes
DoTake 10 from HealthHero flashes for 1 seconds
WhenHealth is empty
DoSubtract 1 from livesRestart this level

Bar is empty is not red. It stays true while the bar is empty, so the second rule restarts the level before it can fire twice. If you only hide the hero instead, add Only the first time.

Still stuck?

Try the Chocobreak tutorial, open a sample game and read its rules, or look at the questions people ask.