Hit Zone, Status & Effect Node
by JBSnippets
Hit Zone, Status & Effect ~ Godot 4+
A custom Godot 4+ node used to detect a hit from an attack and creates a series of status/effects on the target.
This custom node can be used to detect a hit from an attack by monitoring collisions when a node body enters the selected Area2D. After calling the hit_body
function either manually or automatically when collision is detected, status/effects are created in the target node body.
🧬 Features
- Automatically create statuses and/or effects when node body hits an Area2D.
- Easily add a dictionary of status/effect resistances.
- Includes
Damage
,Heal
andKnockback
effects. - Built to integrate with JBS Health Node.
- Signals are emitted before and after status/effect application.
- Extend and create your own status and effect!
💽 Supported Versions
📥 Installing the Plugin
Install using Godot's AssetLib
- Go to the
AssetLib
in the Godot Editor. - Type "hitzone" to search for the
HitZone
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
Once this plugin is enabled, you can add the HitZone
node as a child of another node, like a StaticBody such as a weapon, trap, or projectile, to utilize its features.
- Right-click on a node or press Ctrl+A.
- Type "hitzone" on the Search textbox of the Create New Node form to filter the node list and easily find the
HitZone
node.
- Double-click the
HitZone
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 with Godot!
Download
Support
If you need help or have questions about this plugin, please contact the author.
Contact Author