I'm detecting the distance from enemy to player. Once the enemy is close enough, I want it to move faster. However, instead of only those enemies (that are close enough) getting faster, all enemies get faster. How do I make it so that only those that are close go faster?
distance(Enemy.X,Enemy.Y,Player.X,Player.Y) < 200
Enemy > Set Bullet speed to 800
I guess one solution is to create a circle sprite around my Player and if the enemy is overlapping it, to change the speed, but I don't want to do that.