Hi everyone,
I’m trying to figure out how to make a guard/enemy behave like this:
If anyone could help me or point me in the right direction, that would be amazing! I’ve searched the forum and YouTube a lot but haven’t found any clear solution yet.
Thanks in advance!
I’m trying to figure out how to make a guard/enemy behave like this:
- The guard starts by patrolling on the map using a custom move route;
- If the player enters the guard’s field of vision, the guard chases the player;
- If the guard touches the player, a battle starts;
- If the player manages to escape (by staying out of sight for a few seconds), the guard goes back to its original position and resumes the patrol.
If anyone could help me or point me in the right direction, that would be amazing! I’ve searched the forum and YouTube a lot but haven’t found any clear solution yet.
Thanks in advance!