On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Seeing that you have used Godot, take a look at the VisibilityEnabler node, it has this exact same function and it is really easy to implement (just put it in your enemies and adjust the visibility range!)

(+1)

Thanks for the help! I'll probably take a little break from this project, but I'm sure to come back to it at some point.