Plinkie, am I wrong, but is this assigning random numbers to the ship types via "choose" and "pick", so they are only sometimes the same?
I actually wanted the same firing pattern for each different ship type consistently. So say ship type 1 or t1 would only fire green shots, ship type 2 or t2 would only fire red shots.
Is that possible?
I guess the question is; how can one compare a specific object type picked via random instance in a family?
Or is the only or better way of doing this via specific family instance variables setting everything up separately for each ship in terms of firing pattern?
I guess I was looking for a convenient shortcut if one exists.
Also, not really sure how to avoid each ship of a specific type from firing the same, some sort of random roller for the cooldown instance variable?
It gets pretty hairy 'cause I have a lot of different ship types and if you start using similar logic without one all encompassing algorithm things break down.
That's sort of the boat I am in right now. I designed a lot of different shot spawners, but it's similar logic, so they malfunction when there's multiple ship types on screen.