Health Node

by JBSnippets

7

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 and ProgressBar 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

  1. Go to the AssetLib in the Godot Editor.
  2. Type "health" to search for the Health node.
  3. 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.

  1. Right-click on a node or press Ctrl+A.

Add Node

  1. Type "health" on the Search textbox of the Create New Node form to filter the node list and easily find the Health node.

Add Node

  1. Double-click the Health node to add as a child of the node.

Add Node

📺 Video on How to use the plugin.

Watch the video

📡 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.

Version

0.1.2

Engine

4.1

Category

Misc

Download

Version0.1.2
Download Now

Support

If you need help or have questions about this plugin, please contact the author.

Contact Author