Game Over Condition

Hi guys, I just wanna ask. My game have a random objects falling and they need to click it for it to be deleted. Now I wanna end the game if the condition of it ending is that there are already five objects on my platform. How do it do it?

Didn’t Understand your problem.Please explain

I have different objects that falls on the platform and each time an object was clicked it will be deleted.
The condition I want is, if there are 5 objects on the platform that wasn’t deleted the game would end.

Hi,
For each object in collision with the platform, add 1 to a variable, and remove 1 when it is deleted.
If variable = 5, game over.