Hit Zone, Status & Effect Node

by JBSnippets

3

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

  1. Go to the AssetLib in the Godot Editor.
  2. Type "hitzone" to search for the HitZone 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

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.

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

Add Node

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

Add Node

  1. Double-click the HitZone 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 with Godot!

Version

0.1.0

Engine

4.1

Category

Misc

Download

Version0.1.0
Download Now

Support

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

Contact Author