Into Game Mechanics: Guards Patrol — Part 1
Objective: code the enemy AI for patrolling behaviour
Cool stuff ahead!
Our goal today is to make the guards patrol on pre-chosen paths. In order to do so we have to acknowledge the fact that guards and Darren share the same features (in this case the navmesh agent) and the only difference is that Darren is guided by human hand. So, the first thing to do is to…