I created a simple game that shows a total of 10 objects, objects created every 5 seconds and lasting another 5 seconds. The player needs to click on the correct objects to destroy them before the total time of 30 seconds runs out and the program stops creating new objects.
I am using a variable to control the number of objects created, however, I cannot use the inverted on-screen event, as it does not work, to check if all objects have been destroyed and there are no more on the screen. Instead, I'm having to take the last object created (which may or may not be correct) and wait for its lifetime to then change levels. In cases where the object is the correct one, it is destroyed when clicked and the game has an empty screen until its lifespan is complete. Would anyone have a solution for this?