0
Answered

avoiding player

q8m.alsubaie 2 months ago in Game Creator updated by Marti (Lead Developer) 2 months ago 1

how do i make enemies run away or avoid the player? I want to make it so when the player gets near a certain enemy that enemy runs away. Is there a way to make the enemies stay a certain distance away from the player without the use of markers.

can i make him run away from the player the same way there is an action to follow him?

Unity version:
2019.4
Game Creator version:
Answered

Running towards something is much easier from fleeing, as the first has a target object to move to, while flee does not.

I would recommend setting "hiding spots" in your map and making enemies run towards the furthest ones.