Simple but fun. Needs some sort of check so enemies don't spawn on top of you.
THX FOR THE FEEDBACK :D, struggle a lot with that jaja but at the end i didnt found a solution
One possible fix could be having an invisible object that randomly warps around when it's time to spawn an enemy until it's far enough from the player, and then spawning the enemy on the object's position.