Enemy Behavior Tree AI FULL IMPLEMENTATION (AI Tree) | AI Series 48 | Unity Tutorial
LlamAcademy LlamAcademy
21.2K subscribers
12,204 views
0

 Published On Aug 31, 2023

Go to this video's Sponsor: https://snhu.edu/llamacademy to see what the current average annual salary for a game developer programmer is and learn how you can get started!

Learn how you can implement Enemy AI with a Behavior Tree!
This is a full implementation using AI Tree (https://assetstore.unity.com/packages..., a powerful Behavior Tree framework with advanced features like Environment Query System (EQS) and a Perception System.
While we're using AI Tree specifically in this tutorial, you can use virtually any Behavior Tree framework to get similar results for this use case.

A special thank you to Renowned Games for the copy of AI Tree used in this tutorial 🧡!

đź’¸ Ongoing sales đź’¸
âš« Check out the latest Humble Bundles https://www.humblebundle.com/software...
âš« Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publishe...
âš« Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sal...

👨‍💻 As always, all code from this video is available on GitHub: https://github.com/llamacademy/ai-ser...
I cannot include AI Tree itself or the Quirky Llama since they are paid assets, but if you own those, simply import them and you are good to go!

đź“š Resources:
âš« AI Tree: https://assetstore.unity.com/packages...
âš« The Quirky Llama: https://assetstore.unity.com/packages...
âš« Unity Particle Pack: https://assetstore.unity.com/packages...
⚫ A more scalable way to define enemy stats:    • ScriptableObject-based Enemy Types | ...  
⚫ The same Enemy AI implemented with a Finite State Machine:    • Enemy State Machine AI FULL IMPLEMENT...  
⚫ Not sure which AI Behavior Framework to use? Check out my comparison video:    • Which AI Behavior Framework Should Yo...  

❤ Believe in LlamAcademy's mission and have received value from the videos? Become a Supporter:
⚫ Patreon:   / llamacademy  
⚫ YouTube Member:    / @llamacademy   or click the Join button on any video
âš« GitHub Sponsor: https://github.com/sponsors/llamacademy

----
I also have some Unity Assets: https://assetstore.unity.com/publishe...
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, What to Expect
01:54 Initial Setup of Behavior Tree & Blackboard
03:10 Idle Branch
06:08 Sponsor - Southern New Hampshire University
07:49 Chase Branch
11:14 Detect Players - PlayerSensor.cs
11:49 Catch Events & Feed Blackboard Chasing Data - Enemy.cs
14:33 Hook up References, Physics Setup, & Demo Chase
16:51 Melee Attack Branch
19:08 Feed Blackboard Melee Attack Data - Enemy.cs
22:14 Simple Damaging in Player.cs
22:39 Melee Scene Configuration & Demo
23:37 Prevent Moving while meleeing
24:13 Spit Attack Branch
26:00 Spit Projectile - Spit.cs
26:59 Spit Projectile Prefab
27:29 Feed Blackboard Spit Attack Data - Enemy.cs
29:59 Spit Scene Configuration & Demo
30:36 Bounce Attack Branch
32:09 Feed Blackboard Bounce Attack Data - Enemy.cs
32:51 Bounce Scene Configuration & Demo
33:16 Roll Attack Branch & Impact Sensor Object
34:32 Detect Rolling Collisions - ImpactSensor.cs
34:59 Roll Attack Branch Continued
36:51 Feed Blackboard Roll Attack Data - Enemy.cs
38:43 Roll Scene Configuration & Final Demo
39:26 Closing Thoughts, Support LlamAcademy

show more

Share/Embed