Reduces the amount of health left.
Name | Type | Description | Required | Default Value |
---|---|---|---|---|
Amount | Number | The amount of health that should be removed. | ✓ | 0 |
1: ...
2: DecreaseHealth:[50];
3: ...
1: ...
2: Damage:[20];
3: ...
The maximum amount of health is 100 units. The health bar will automatically be displayed when the health is changed, provided it wasn't already being displayed
Should the health fall to 0 or below, the Frame with the ID GameOver
will be called, should it exist. Afterwards, the game will end.