Distracting the Enemy AI

Valdarix Games
Level Up Coding
Published in
5 min readMay 17, 2021

--

Setting up a coin distraction

“Hey what was that?”

In our simple stealth game, we need to be able to move a stationary guard from his location so we can get past him. Luckily our hero happens to have a gold coin in his pocket. So let’s toss it on the ground and have the guards check it out.

Since we already set up Nav Mesh Agents on the guards we can utilize that to distract them. In the screen grab above, you will…

--

--

Turning my passion for video games and software development experience into a focus on video game development.