I need to loop through all the instances of a sprite on the stage, and test whether the instances current frame, is equal to a frame preset in the instances "instance variable".
All of the instance on the stage must pass this before the level is solved.
Example - instance1 has its variable set to 2, and instance2 has its variable set to 4.
This is just mockup code ...
if instance1.frame == instance1.instanceVariable (2)
and instance2.frame == instance2.instanceVariable (4)
Could someone help me to get this working as a loop?
Thank you very much in advance!