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
4 views
77
12
2 months ago 00:21:16 1
Air Force Veterans FIRE BACK at Trump as he SPIRALS FURTHER
2 months ago 00:00:00 1
LIVE: Dr. Phil Endorses Donald Trump At Madison Square Garden Rally | US Election 2024 | N18G
2 months ago 01:51:22 1
China vs. United States | Cold War | Nuclear Threat | Investigative Journalism
2 months ago 00:01:00 1
Were Secret U.S. Bases Ever Discovered?
2 months ago 00:29:45 1
US and British Ex-Soldiers in Ukraine Discuss the Hottest Topics of the Russian Invasion
2 months ago 00:24:12 1
Sultan Murad Puts the Rebels to Sword | Magnificent Century Kosem
2 months ago 01:53:38 1
Эпическая мощная боевая музыка 🔥 Лучшая Эпическая музыка 2022 - The Best Epic Music
2 months ago 00:14:34 1
The Last of Us 2 Remastered PS5 Stealth Kills & Aggressive Combat - Gameplay (GROUNDED+) 4K 60 Fps