A complete, production-ready character controller for third-person action RPGs. Features smooth platformer-style movement, satisfying combat, intelligent enemy AI, and all the systems you need to build your game.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CORE FEATURES
▸ RESPONSIVE MOVEMENT
• Walk and sprint with smooth acceleration
• Double jump with configurable air jumps
• Coyote time and jump buffering for forgiving platforming
• Variable jump height (release early for shorter jumps)
• Wall slide prevents getting stuck on geometry
▸ SATISFYING COMBAT
• Light and heavy melee attacks with combo system
• Ranged attacks with projectiles
• Lock-on targeting with automatic target switching
• Dodge roll with invincibility frames
• Knockback and hit feedback
▸ STAMINA SYSTEM
• Drain stamina for sprinting, dodging, and attacks
• Configurable regeneration with delay
• Visual feedback via included HUD
▸ ENEMY AI
• Finite State Machine: Idle, Wander, Chase, Attack, Stagger
• Melee enemies that chase and combo attack
• Ranged enemies that keep distance, strafe, and reposition
• Aggro system - enemies chase whoever attacked them
• NavMesh pathfinding with line-of-sight detection
• Fully configurable via ScriptableObjects
▸ DESTRUCTIBLES
• Breakable barrels, crates, pots
• Debris spawning with physics
• Item drops with configurable count and chance
• Hit effects: particles, sounds, flash, wobble
▸ COMPLETE SYSTEMS
• Health with invincibility frames
• Auto-respawn with checkpoints
• Player HUD (health bar, stamina bar, currency)
• Inventory for coins/currency
• Third-person camera with lock-on mode
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EASY SETUP
1. Add RPGPlayerController to your character
2. Create a Player Profile ScriptableObject
3. Tweak settings in the Inspector
4. Done!
All components auto-configure. Camera creates itself if missing. Full documentation and prefabs included.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MODULAR & EXTENSIBLE
Every system is independent and communicates via events:
• OnJump, OnLand, OnDodgeStart, OnDodgeEnd
• OnMeleeAttackStart, OnMeleeAttackEnd
• OnRangedAttackStart, OnRangedAttackEnd
• OnDamaged, OnDeath, OnRespawn
• OnStaminaChanged, OnCoinsChanged
Easy to hook into for audio, VFX, achievements, or any custom logic.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT'S INCLUDED
• Player Controller with all subsystems
• Enemy AI (melee and ranged variants)
• Destructible environment objects
• Player HUD prefab
• Projectile system
• Training dummy for testing
• ScriptableObject profiles for easy tuning
• Full source code (C#)
• Comprehensive documentation
• Demo scene
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━