» Thu Dec 10, 2009 12:01 pm
1. Why dont you use variables for this?
2. You could assign each enemy a unique ID ( For each enemy, set value "uniqueID" to LoopIndex) and have that unique ID correspond to a row on the array?
3. Or you could assign a unique ID to each enemy, then create an array object for each enemy and give the array a variable called "uniqueID" and make it the same as the enemies value.
---> Although actually, wouldn't it be better to just put an array a container with the enemy? That way each time a new enemy is created, a new array is also, and that array will be picked by default when the enemy is picked.
Just some suggestions, haven't tried them out so i may be wrong.