Today we're implementing Enemy AI in Unity using our State Machine and the Strategy programming pattern. The goal today is to get enemies to detect players, chase them around and start attacking! Towards the end of the video, we'll talk more about our project setup tool, how to import Unity packages in code, and how to make your own package!
🔔 Subscribe for more Unity Tutorials / @git-amend
#unity3d #gamedev #indiedev #3dplatformer
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 Intro
0:45 AI Navigation
2:15 Enemies!
5:00 Base State
7:25 Wander State
10:30 Chase State
11:30 Player Detector
12:51 Detection Strategy
19:20 Attack State
22:30 Importing Packages using Code
25:30 Outro
Source code: https://github.com/adammyhre/3D-Platf...
Documentation About Building Your Own Packages
https://docs.unity3d.com/Manual/upm-m...
https://docs.unity3d.com/Manual/cus-l...
Open Source Used In This Video
https://github.com/KyleBanks/scene-re...
https://github.com/starikcetin/Eflatu...
Assets Used In This Project (Affiliate Links)
Dungeon Mason Tiny Hero Duo (FREE): https://assetstore.unity.com/packages...
Dungeon Mason Monster Buddies (FREE): https://assetstore.unity.com/packages...
Selection History Tool (FREE): https://assetstore.unity.com/packages...
Cartoon Remaster VFX (FREE): https://assetstore.unity.com/packages...
Casual Game SFX (FREE): https://assetstore.unity.com/packages...
Ultimate Low Poly Pack: https://assetstore.unity.com/packages...
DOTween (FREE): https://assetstore.unity.com/packages...
DOTween (Pro): https://assetstore.unity.com/packages...
Follow me!
https://linktr.ee/gitamend