Hello, can someone please help me with this?
Example:
I have three instances of the same sprite object on screen, this object has a private variable called "var"
Object 1 var = 10
Object 2 var = 5
Object 3 var = 7
I need to know if there is an on-screen object with var = 4, if it does not exist, then I have to create a sprite object with var = 4
If I make this condition in C2:
If (sprite.var! = 4)
This collects the 3 objects
If I do this:
If (sprite.var == 4)
This does not collect any object and the condition will be false, I will not be able to create the object with var = 4
So how should I do the condition ?.