First I'd like to say thank you to everyone who has contributed to these forums and the tutorials. I wouldn't have made much progress without the help I've found in your answers to others questions and in your tutorials.
Now on to my question:
I have a game where you have to stop sprites before they spawn. So, if you don't act fast the sprites spawn more sprites, and those sprites spawn more sprites,etc - until the screen is jam packed with sprites in which case - game over.
I'm trying to figure out how to have an event detect that there are too many sprites on the screen. All sprites are solid, and contained within the screen. So they are bouncing off each other, and bouncing back off another sprite, spawning endlessly.
The sprites are all different sizes, so I can't go by numbers of sprites. I'm currently attempting to record the location of a sprite in an instance variable and every 2 seconds compare the current location to the instance variable - but it isn't working very well (possibly because the sprites are still moving, even if they are just juttering in a tight area).
Is there a good way to test if the screen is overpopulated with sprites?
TIA!