Health, HitBoxes, HurtBoxes, and HitScans

This Godot plugin provides components for managing health, damage, and healing in 2D and 3D games. It includes Health, HitBox, HurtBox, and HitScan nodes for implementing robust combat and damage systems.

https://github.com/cluttered-code/godot-health-hitbox-hurtbox

Preview Images

Preview
Preview
Preview
Preview

Godot Health, HitBoxes, HurtBoxes, and HitScans Plugin

This plugin offers a comprehensive solution for managing health, damage, and healing mechanics in Godot Engine. It provides a set of ready-to-use components that simplify the implementation of combat systems in both 2D and 3D games.

Key Features

  • Health Component: Tracks an entity's health and emits signals for health-related changes.
  • HurtBox Component: Detects collisions with HitBoxes or HitScans, applying damage or healing to the associated Health component. Supports both 2D (HurtBox2D) and 3D (HurtBox3D) environments.
  • HitBox Component: Detects collisions with HurtBoxes to apply damage or healing. Works in both 2D (HitBox2D) and 3D (HitBox3D) spaces.
  • HitScan Component: Uses raycasting to detect HurtBoxes and apply damage or healing, suitable for ranged attacks. Available in 2D (HitScan2D) and 3D (HitScan3D) variants.

Usage

To use the plugin, simply add the desired components to your game entities. Configure the collision layers and masks to ensure proper interaction between HitBoxes, HurtBoxes, and HitScans. The plugin provides a flexible and efficient way to create compelling combat experiences in your Godot games.

Resource Details

library

cluttered-code



4