2D Health And Damage Plugin

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 System
    Track HP for players or enemies
    Supports events for damage and death
  • DamageDealer2D Script
    Single-hit or repeated damage zones
    Optional knockback for dynamic effects
    Layer and tag filtering for precise targeting
  • Player Movement Script
    Smooth horizontal movement and jumping
    Easily integrates with knockback
  • Health UI
    Screen-space HUD or world-space floating bars
    Auto-update and optional fade-in/fade-out
  • Prefabs & Demo Scene
    Player 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.