Script CharacterSpriteComponents
Components
bestiary | |
clonkingSprite | |
healthBar | Displays the entity's health bar in the world, above the entity |
healthBarFullHearts | Maps the entity's health to full hearts (using enemy-style heart sprites) |
healthBarHUD | Displays the entity's health bar in the HUD |
healthBarHalfHearts | Maps the entity's health and cursed health to half hearts (using player-style heart sprites) |
healthBarHideByPlayerSetting | Hides the entity's in-world health bar if player health bars are disabled |
healthBarHideOnFullHealth | Hides the entity's in-world health bar unless the entity has taken damage |
hopInPlaceOnIdle |
Components
- bestiary
-
- image constant string (default "")
- focusX constant float (default 0)
- focusY constant float (default 0)
- clonkingSprite
-
default:
{}
- sprites constant table
- healthBar
-
Displays the entity's health bar in the world, above the entity
- visible bool (default false)
- offsetX constant float (default 0)
- offsetY constant float (default 0)
- spacingX constant float (default 12)
- spacingY constant float (default 12)
- columns constant int (default 10)
- alignRight constant bool (default false)
- healthBarFullHearts
- Maps the entity's health to full hearts (using enemy-style heart sprites)
- healthBarHUD
- Displays the entity's health bar in the HUD
- healthBarHalfHearts
- Maps the entity's health and cursed health to half hearts (using player-style heart sprites)
- healthBarHideByPlayerSetting
- Hides the entity's in-world health bar if player health bars are disabled
- healthBarHideOnFullHealth
-
Hides the entity's in-world health bar unless the entity has taken damage
- overridable constant bool (default true)
- hopInPlaceOnIdle