So i've made my first little zombie-like game, but i seem to have a problem.
What now happens is as soon as you kill a zombie, there spawns another one randomly at the map. But it can also spawn like 1 pixel away from the player, the player will be dead in no time like this.
Does anybody know how to spawn an object random at the map but not near another object?
Sorry if this is a noob quuestion, new to this (:
In advance, Tnx!