I am trying to spawn random objects at random positions. There's how my conditions look like.
Firstly, I am spawning random object out of 4 monster objects that are currently on my frame. Then, I change X and Y coordinates for every monster since I do not know which one is going to be spawned. But the final result looks like this
Monsters are being spawned only at these 2 spots. Probably there're multiple layers of these monsters, cause when I destroy one the next one is replacing it.
Anyone has an idea what might be wrong and how to fix it properly? Thanks for your help