I'm currently building an "Interceptor" style game where objects are randomly spawned from one of two families and drop down from the top. Upon the user hitting these spawned objects, they blow up and accumulate point values.
My problem is, I want each object from both families to only spawn once. I need some way to set an instance variable on the individual objects in the family once they're chosen and spawned so as the next time the game goes to pick a random instance from either family, they won't choose objects that have already been used (chosen).
Does anyone have insight as to how to accomplish this?
Any help/advice is greatly appreciated!