Into Game Mechanics: Guards Patrol — Part 1

Daniele Quero, PhD
Geek Culture
Published in
5 min readSep 22, 2021

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…

Daniele Quero, PhD
Geek Culture

A professional developer with passion for game developing and skill-growing. A former Nuclear Physics Researcher who changed his life to pursue his dreams