2D Jumping Enemy AI – Platformer AI with Camera Shake, VFX & Smooth Animations


2D platformer Enemy AI with patrol, jump attack, player detection, death VFX, camera shake, SFX, full animations, URP/Built-in support. Easy to use & fully customizable.


by Aether2D


Price History +

2D Jumping Enemy AI – Platformer AI with Camera Shake, VFX & Smooth Animations


Bring your 2D platformer to life with this fully customizable Jumping Enemy AI. Designed for responsive gameplay and player feedback, this enemy combines smooth movement, attack anticipation, and reactive combat logic.


⚙️ Enemy Behavior Overview :


The enemy patrols left and right, flipping direction automatically when it hits a wall or no longer detects ground under its feet. This creates a dynamic roaming effect across platforms.

When the player enters its detection zone, the enemy prepares to jump attack by crouching down for a brief moment. This anticipation phase gives the player a chance to react and adds more visual clarity to the attack.


After this short delay, the enemy leaps toward the player, triggering a camera shake and playing jump particle effects. You can control the jump behavior directly in the Inspector, including Jump distance and height (how far/high it goes)


These settings let you define if the enemy feels aggressive, cautious, or balanced.


💥 Player Interaction Logic :


The enemy uses two separate colliders for precise interactions:

  • Head Collider: If the player jumps on the enemy's head, the enemy dies, playing a death VFX, and SFX, while the player is bounced upward automatically.
  • Body Collider: If the player collides with the body (from the side or below), they take damage.

This classic mechanic encourages skillful movement and adds satisfying feedback to every encounter.


🎮 Animations, VFX & Audio


The enemy includes three polished animations:

  • Walk (during patrol)
  • Jump (when launching)
  • Air (in mid-air)

Each jump triggers camera shake using Cinemachine and plays dedicated jump particles. Death is also enhanced with a custom explosion VFX and death sound. Additional SFX are provided for walking and jumping.


🔧 Customizable & Easy to Use


All variables can be adjusted via the Unity Inspector:

  • Movement speed
  • Jump height & length
  • Detection radius & angle
  • Bounce force
  • Sound and VFX toggles

The code is clean and fully commented, making it easy to modify or extend.


📦 What’s Included

  • Fully functional 2D Jumping Enemy AI prefab
  • Commented C# scripts
  • PDF documentation (including Cinemachine setup)
  • Prefabs for URP and Built-in Render Pipeline
  • 4 CC0-licensed background music tracks (free for commercial use)
  • Walk, jump, and death sound effects
  • Jump and death particle effects
  • 15+ hand-drawn environment sprites (up to 3000x3000 resolution)
  • Free 2D game UI pack (HUD, buttons, coin counters, etc.)

🔗 This package is part of a growing 2D asset series, including more enemies, tilemaps, characters, and more. Explore the full collection here:

👉 See what's coming next