No thats what im asking i do not know how to check where the player character is. I want him to only start acting once the player character is within a certain range (but preferablly only once at the beginning so you cannot just walk out of his range) nor how to check where the character is in comparison if the enemy keeps on moving back on forth. Thats what i dont know.

