Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

A technical question. Did you just use colliders for the vision cones to detect when they see the player or is there another way to create that mechanic?

Because I used unity I used something called an Overlap Circle to detect the player. Then used sin cos to make the "vision cone". When the player is inside the vision cone I simply called an raycast to see if anything was obstructing the guard's view.