Lets say I have 15 instances of Sprite.
Sprite has an instance variable called "true".
The value for true will be either "0" or "1".
The user controls position of Sprite.
Sprite.true will depend on it's location defined by the user.
I need to know how to: Count each Sprite where Sprite.Ture = "1" Every Tick.
I thought it would be something like:
{ For Each "Sprite", Sprite.True = "1" [ Add 1 to Global_Variable(Count) ] }
This works as a once off count, but obviously not in real time.
Any thoughts?