I would like enemies to spawn at random locations around my map, but from a certain distance from the player so they spawn offscreen.
I tried making a condition where I exclude spawns that would happen within 1000 units to the player, but it doesn’t work. The enemies just keep appearing randomly everywhere, even right next to the player.
Hope someone can help, Thanks!