I want to make it so enemies will spawn near the player in my game. I also want to make it so enemies only shoot when the player is near by but... How? I can easily find the X and Y of both the player and enemies in my game but how do you use those to find the distance? I can't use a distance formula but you can't use square roots in expressions. The proximity can only tell me the cords of the enemy when they get close to the ship. But that won't allow me to disable them from shooting or make a zone near the player that enemies won't spawn.