2D Health And Damage Plugin View on Asset Store (opens in new tab)

Package details

Latest version
1.0
Last updated
First released
Unity version
6000.3.10 or later
Package size
677 KB
Files
12
Favorites
8
Views in the past week
32

Price tracking

Last checked
Tracked since
Lowest recorded
Free on

Keywords

2D Health And Damage Plugin

by CodeFrontGames (opens in new tab)

No ratings yet

  • Price drop

A lightweight, modular, and fully functional 2D health and damage system for Unity.

Discount -100% Previous price $4.99 Price Free

Get it free on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for 2D Health And Damage Plugin, 6 months Current Free; lowest Free; highest Free in this period. $0 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 2

2D Health And Damage Plugin screenshot 1

2D Health And Damage Plugin screenshot 1

About this asset

Perfect for platformers, action games, or prototypes, this package gives you working scripts, prefabs, and a demo scene — no polished graphics required.

Features

  • Modular Health SystemTrack HP for players or enemies
    Supports events for damage and death
  • DamageDealer2D ScriptSingle-hit or repeated damage zones
    Optional knockback for dynamic effects
    Layer and tag filtering for precise targeting
  • Player Movement ScriptSmooth horizontal movement and jumping
    Easily integrates with knockback
  • Health UIScreen-space HUD or world-space floating bars
    Auto-update and optional fade-in/fade-out
  • Prefabs & Demo ScenePlayer and enemy prefabs ready to drop in
    Demo scene showcasing movement, damage, knockback, and health bars

Why Choose This Asset

  • Script-only, functional, and lightweight — no extra art or clutter
  • Easy to integrate into any 2D project
  • Expandable — all systems are modular and customizable

Requirements

  • Unity 2021.3 or later
  • Works with 2D project templates
  • No external assets needed

Included in Package

  • Scripts: Health.cs, DamageDealer2D.cs, PlayerMovement2D.cs, HealthUI.cs
  • Prefabs: player, enemy, health bar
  • Demo scene: simple environment to showcase features

✅ Perfect for prototyping or adding a ready-made 2D health system to your game.

From the publisher's Asset Store listing.

Technical details

Key Features

1. DamageDealer2D (Damage System)

  • Multiple Damage Types: Physical, Fire, Ice, Poison, Other.
  • Customizable Damage Amount: Set per object via inspector.
  • Target Filtering:By LayerMask (allow/ignore specific layers)
    By TagOption to ignore self and parent/child objects
  • Single-Hit or Continuous Damage:
    Single hit
    option (one-time damage per target)
    Repeated damage while staying in trigger with configurable interval.
  • Knockback Support:Applies 2D force to Rigidbody2D on hit
    Customizable force vector
  • Projectile/Hit Object Options:Destroy object after hitting target (useful for projectiles)
  • Event-Driven Design:onHit (triggered when target is damaged)
    onKill (triggered when target dies)
  • Hit Tracking: Prevents multiple hits on same target if singleHit is enabled.

2. Health (Health Management System)

  • Health Settings:Configurable max healthOption to destroy object on death
  • Damage Handling:Reduces health by given damage amount
    Optional invincibility duration after taking damage
  • Healing System:Restores health by a specified amount
    Full health reset function
  • Kill Function: Instantly sets health to 0 and triggers death
  • Event System:OnDamaged → current/max health
    OnHealed → current/max health
    OnHealthChanged → any health update
    OnDeath → death event triggered
  • Invincibility Management: Handles cooldown after damage to prevent repeated hits

3. HealthBarUI (UI Integration)

  • Dynamic Health Bar: Updates an Image.fillAmount based on current health.
  • Automatic Binding: Works with the Health component on the same GameObject.
  • Event-Driven Updates: Listens to OnDamaged and OnHealed to update UI in real-time.
  • Debug Support: Logs health changes for easier testing.

Other Features & Highlights

  • Fully modular: Each component works independently, allowing easy integration with different game objects.
  • Unity Events: Highly flexible, works without coding for designers via the inspector.
  • 2D-Ready: Designed for 2D physics, but easily adaptable to 3D with minor changes.
  • Clean and configurable: Inspector-based configuration with tooltips for every field.

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP
6000.3.10f1 Compatible Not listed Not listed

As listed on the Asset Store.