Hi there!! ^^
I’m on the making of a very simple game … and until now it is going pretty well =) The only thing left are the enemy “AI” (If it even deserves that name xP)
For now, as this is an Alpha state or “Concept” the current enemies are just singular cubes! ^^
I want this cubes to “Patrol” determined points on the map and chase the player on sight with the intention of “Finish Him”.
I have everything else, the collider “Termination”, the respawn, the menus, in singular words i have a completed game … but i just need this last part and honestly i do not know what to do.
Use a Sphere trigger as your AIs “detection radius” (you could also do something clever along with this and give the AI a FOV) once the Player enters the Sphere, the AI can change to a state of Attack. If it doesnt know where the player is, simply get the cubes to do a simple move to some target points until the Player becomes aware to the AI.
Does this make sense?