Health Node
by JBSnippets
Health node ~ Godot 4+
A custom Godot 4+ node designed to store and update the health amount of a node, emitting signals based on health amount changes and set properties.
The node enables the addition of health capabilities, which can be adjusted by invoking the update_amount
function. It can automatically send signals based on changes in the health amount and set properties.
🧬 Features
- Customizable health and maximum health values.
- Simplified connection to a
TextureProgressBar
andProgressBar
node as a health bar. - Configurable auto-hide feature for the health bar.
- Option to switch from manual to automatic health update behavior.
- Ability to pause the automatic health update for a specified number of seconds.
- Ability to enable or disable damageable, healable, and revivable behaviors.
- Signals are emitted based on behavior, set properties, and updates to health amounts.
💽 Supported Versions
📥 Installing the Plugin
Install using Godot's AssetLib
- Go to the
AssetLib
in the Godot Editor. - Type "health" to search for the
Health
node. - Select the asset (by JBSnippets 😊) and click Download.
Install with examples
- Download as a ZIP file from this repository or
- Clone this repository
🚀 How to add the node
After enabling this plugin, you can add the Health
node as a child of another node, usually a CharacterBody or StaticBody, to use its capabilities.
- Right-click on a node or press Ctrl+A.
- Type "health" on the Search textbox of the Create New Node form to filter the node list and easily find the
Health
node.
- Double-click the
Health
node to add as a child of the node.
📺 Video on How to use the plugin.
📡 More Plugins!
Head on over to my website at https://plugins.jbsnippets.com to read more about this plugin and other plugins that I've been creating during my game development journey in Godot.
Download
Support
If you need help or have questions about this plugin, please contact the author.
Contact Author