How do I create an enemy randomly without him suddenly jumping on my player?
If I create an object every few minutes randomly for example
random(2000) There is a probability that he will suddenly hurt the player.
How can I prevent this? And always make sure that I don't suddenly appear in the player's radius