I am trying to make a game where it will randomly place a few sprites on the screen. If any of the sprites collide/overlap they are moved to another location. This works most of the time, but there are a few times where the sprites end up on top of each other and don't get relocated.
Code Example:
Sprite1 on collision with Sprite1:
Sprite1 Set position to (random(600), random(400))
From my understanding of the collision event, this will run each time there is a collision between any Sprite1. Why does sometimes it doesn't do it? Is there a better way of doing this type of collision detection?