Enemy State Machine AI FULL IMPLEMENTATION | AI Series 47 | Unity Tutorial

Learn how you can implement Enemy AI with a Finite State Machine. This is a full implementation using Unity Hierarchical State Machine (Unity HFSM), a code-driven state machine framework for Unity. 💸 Ongoing sales 💸 ⚫ Check out the latest Humble Bundles ⚫ Publisher Sale! 50% OFF an entire publisher’s Assets! Publisher changes weekly! ⚫ Save up to 50% on NEW Assets: 👨‍💻 As always, all code from this video is available on GitHub: 👨‍💻 If you’re just looking for Unity HFSM, it’s here: 📚 Resources: ⚫ Unity HFSM: ⚫ This super cool Llama: ⚫ Unity Particle Pack (free): ⚫ AI Series 44 (Movement Prediction): ⚫ Damage System: ⚫ Unity 2021 Object Pooling API: ⚫ Comparison of AI Behavior Frameworks: ❤ Believe in LlamAcademy’s mission and have received value from the videos? Become a Supporter: ⚫ Patreon: ⚫ YouTube Member: or click the Join button on any video ⚫ GitHub Sponsor: ---- I also have some Unity Assets: Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase. #unitytutorial #tutorialtuesday #gamedev #tutorial #unity #llamacademy #gamedevelopment Chapters: 00:00 Topic Introduction 00:35 Unity HFSM Installation 01:25 What to Expect & High Level Design 02:50 FSM Design in Animator 06:22 Unity HFSM Key Classes - , , 07:26 Introduction 07:48 - Defines all possible states 08:00 - Defines all possible events 08:10 - Set up State Machine with all states 09:58 - Base State for all Enemy State Behaviors 11:45 12:18 13:31 & 14:45 15:22 15:34 16:15 Add References & Update State Constructors - 17:49 Detect Player Within Different Ranges - 18:18 Use Player Sensors - 19:10 Add Chase/Idle Transitions - 20:35 Add Roll Transitions - 21:54 Detect Collisions while Rolling - 23:16 Add Transitions to Other Attacks - 23:58 Set up Objects in Unity Editor & Demo 25:12 Final Thoughts & Support LlamAcademy
Back to Top