I have sprite called bucket that has an instance variable called ID. The ID variable is assigned a random number between 0-4. During gameplay, several buckets are spawned and the ID given a random number.
How would I check all buckets to see if their ID matches the same number, whatever it is? So if they all have bucket.id = 3 (for example), the event would check and do an action (turn all buckets red) or if they don't match, turn all buckets yellow.
I've tried several combinations, with and without families, pick by, etc and haven't made much progress.
I appreciate your help in advance.