Ignore targets in an Array that have been destroyed?
I have 50+ orbs that can be destroyed.
Each second, a random one changes color.
How to ensure the code will ignore the destroyed orbs when choosing one to change its color?
In other words, how to ensure it doesn't keep targeting 49 missing orbs when only 1 remains?
Trying to avoid a ton of IF/THEN statements :/.
So far I'm thinking setting it's grid position in a 2D Vector to 0, then IF rand(address)=0, THEN roll again.. but I will end up with a pile of zeros when all I need is a 1.