A downloadable Asset

# 🤖 Premium Smart 2D Enemy AI System (C#)

Upgrade your 2D game with a **modular, production-ready State Machine Enemy AI system**. This pure C# script handles complex decision-making loops seamlessly, ensuring smooth performance and intelligent enemy behaviors out of the box.

Perfect for top-down, side-scroller, or sandbox 2D games!

---

### 🚀 Key Features

*   **State Machine Architecture:** Built on a clean, scalable finite state machine processing **Patrol, Chase, and Attack** states dynamically.

*   **Dynamic Target Locking:** Smooth 2D Euclidean distance calculations tracking the player intercepts instantly.

*   **Smart Patrol Logic:** Automatic path node switching with customizable boundaries and speed modifiers.

*   **Combat Engagement & Cooldowns:** Weapon reload delays and automatic projectile/attack timers integrated to prevent spamming.

*   **Developer-Friendly Console Logs:** Clean, stylized debug messages tracking runtime state changes for flawless debugging.

---

### ⚙️ Customizable Parameters

Easily adjust these parameters in the code or inspector to create custom variants (e.g., fast scouts, tanky bosses):

*   `MoveSpeed` (Navigation movement pace)

*   `DetectionRange` (Vision threshold radius)

*   `AttackRange` (Combat trigger range)

*   `AttackRate` (Cooldown delay between strikes)

---

### 📦 Package Content

*   `RustCloudEnemyAI.cs` (Fully documented, optimized source code with zero dependencies)

*Brought to you by **RustCloud Studio**. Professional tools for independent game creators.*

Purchase

In order to download this Asset you must purchase it at or above the minimum price of $4.99 USD. You will get access to the following files:

RustCloudEnemyAI.cs 4.7 kB

Leave a comment

Log in with itch.io to leave a comment.