I am trying to make the life of the bars in my brick breaker game increase as i pass a level, and through that i’m using a variable that has their amount of hits that they can withstand from the ball. The variable is in my class.
The thing is that when i put the variable in my main fla. (which is the only other option that i have) only 1 brick gets destryoed, the other ones are invincible. I don’t get why this happens, but either way…
Does anyone knows how to acess a variable that is inside a class from the main fla. ?
Is it classname.variable? Cause i tried this way and it didn’t worked.