🔟Health
Give an asset health with settings to kill or respawn the asset.
Last updated
Give an asset health with settings to kill or respawn the asset.
Last updated
Copyright © 2012- 2023 The Sandbox. All Rights Reserved.
GAME MAKER 0.9 MULTIPLAYER ENHANCEMENT
The Health component is now available in multiplayer games. Combat is still in development. In multiplayer:
Avatar health is affected through the Health message, Power Up component, fall damage (relative to distance fallen), lack of oxygen, and block damage. The Avatar's health component is found under Player settings.
Object health (characters, props, etc.) is affected through messages and block damage. This page details an object's Health component.
Build Singleplayer & Multiplayer Logic - about [SP] or [MP] behaviours or components
Gives an asset a life system to:
Receive damage and healing
Set instant death message
Send a message when health is 0
Respawn to Checkpoint after death
Display a Life Bar to visualise an object's health
Set blocks to decrease or increase object health
Give an asset health so it can be killed by the Avatar.
Display Health Bar on assets
Kill assets as a logic tool to send precise timed messages.
Deprecated: Used to loop/cycle logic endlessly or by message. Instead, use Timed Events behaviour or Game Rules system to create loops/cycles.
Inputs:
| Outputs: Send message on death |
Options | Details |
---|---|
Health (slider) - Adjust the Max Health of the object. | |
Death Event - Define what happens to the object when it's destroyed. Destroy - The object will be destroyed. Reset - When object dies it will reappear/reset. Respawn To Tag - When object dies it will reappear at the location of the defined tag. Game Over - Defeat screen will appear when object dies. | |
Death Delay - Set timer ( in seconds) before the object's death triggers. | |
Instant death message - The message that will kill the object. | |
Life Bar Display - Define when the life bar of the object is shown. Always - The health bar is always seen. On Hit - Only show health bar when damaged. Hidden - Never see the health bar. | |
Invincible - Toggle True to make the object unkillable. | |
Message sent on death - Set which message gets sent when object dies. | |
Send To Tags - Which tag does the message on death gets sent to. (this is required) | |
Damaging Blocks - Add blocks that will damage the object when it collides with it. | |
Blocks damage - Define the amount of damage that will happen on collision. | |
Healing Blocks - Add blocks that will heal the object when it collides with it. | |
Blocks heal - Define the amount of healing that will happen on collision. | |
Stunnable - Define if the object can get stunned during battle. |