I have a game where a sprite has 3 instance variables (A,B andC) with a randomized value from 0 to 8.
i want it so that when the sprite is selected, and a global variable (named hold) is equal to any of those three values, it sets that specific value to 0
I tried and it sets every single instance variable to 0 not just the one it equals to
example:
there a re 2 instances of that sprite
1 has A1 B3 C4
2 has A4 B7 C8
when hold=1 it sets both A values to 0 like this
1 has A0 B3 C4
2 has A0 B7 C8