I've got a problem with spawning a new object at the last objects position.
Now it works spawning a new object, but sometimes it spawns an object twice.
Let me show you my code:
<img src="http://i.imgur.com/zGIpBz9.png" border="0" />
so basically I create a grid with randomly created objects with different colors.
Then I check if a green box collides with another green box, and if it does, delete it and spawn a new one at its position.
Sometimes, not all the time, it creates two at the same position, which I can tell when counting the objects and testing in debug mode.
Does anyone know why it does this and how I can prevent it from happening?