hy i need a code when the enemy is near player take a sprint to her last position?
Develop games in your browser. Powerful, performant & highly capable.
+ System: distance(player.X,player.Y,enemy.X,enemy.Y) < sprintdistance
-> enemy: MoveTo: Move to (player.X, player.Y) (Direct)