Hitpoints

Using Hitpoints

Hitpoints can be added to objects or the Player, and used to perform a certain action like respawning or deactivating, when they reach 0.

Setting Up Hitpoints

  1. Enable Hitpoints on an object/group/Player: Open Advanced Options on the player or object you wish to use Hitpoints. Then enable the checkbox next to Hitpoints and choose an amount of Hitpoints to give.

Example:

ALT TEXT HERE

Taking Damage

  1. Program an object/group to deal damage: Choose an object or group in your scene to deal damage to your Hitpoint object. Use an event like Hit Target to setup the event, then select Then: Target, Take Damage # as the event action.

Example:

ALT TEXT HERE

Deciding the Fate

  1. Add the On: Hitpoints <= 0 event on your object/group/Player with Hitpoints. Then choose an event action that should occur when your object/group/Player runs out of hitpoints.

Example:

ALT TEXT HERE