Large Enemy AI

This week I have started creating another enemy for my game. I wanted to add another larger enemy to make the game more interesting and more challenging for the Player.

I also want this enemy to wander the environment and pursue the player if they come within a certain radius. However for this enemy I will be implementing an AI algorithm – a Finite State Machine.

In order to understand and create the FSM, I watched several videos from the Unity Navigation Tutorials[1].

I have now created the Patrol and Chase scripts for the Finite State Machine:

 

[1] https://unity3d.com/learn/tutorials/s/navigation

Leave a comment