Lives

Shows how many lives are left, as a number, a row of hearts, or a row of pictures you choose.

Treetop Trek — NutHouse
The Lives object settings with Show lives as set to A row of hearts
Treetop Trek shows lives as hearts.

What the lives object is

Lives are a number the game keeps for the whole game, like the score. A Lives object shows that number on the screen. Losing a life does not end anything by itself. You write a rule for Lives = 0.

Lives appear in every mode.

How to add one

  1. Click + Add object, then New, then Lives.
  2. Drag it to a corner.
  3. Choose Show lives as: a number or hearts.
  4. Click empty space and set Lives at start under Whole game. Three is normal.

What the settings mean

Label in frontWords before the number or hearts, like Lives:.
ShowsPlayer 1 or Player 2. Only in a two-player game.
Show lives asA number · A row of hearts ♥♥♥ · A row of Hero pictures (the sprite you pick) · A row of pictures (chosen).
Size and ColourFor the number and label.
Lives at startUnder Whole game in the level settings, because it belongs to the game, not one level.

Rules for lives

These live in the ☺ Player 1 column:

Subtract lives Add lives Set number of lives Compare the number of lives

WhenBall leaves play area at the bottom
DoSubtract 1 from livesRestart this level
WhenNumber of lives is = 0
DoEnd the game

The second rule is not red, so add Only the first time if it does more than end the game. For player 2 use the ☻ Player 2 column. See Player 1.

Still stuck?

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