I'm trying to make an enemy chase the player,but if the player is far away enough,then it will stop. Help?
Develop games in your browser. Powerful, performant & highly capable.
distance(player.x,player.y,enemy.x,enemy.y)