alpha > 0.5 and alpha
chicop
Member Posts: 263
Hi there
I have a ball/actor that becomes active when self.color.alpha is < 0.5 and is inactive when self.color.alpha is > 0.5
the idea being that if actor receives event touch is pressed and the game.triggerBall (integer) = 1 it sets the game.triggerBall to 0.. inactive
this seems to work about 60% of the time...
everything else works fine... its just that it randomly decides if this command works.. so its not full proof..
does any one have an idea of why this may or may not work?
I also have a boolean on the ball called alpha and in the game scene but these do not work for me...
thanks, i appreciate any feedback on this
I have a ball/actor that becomes active when self.color.alpha is < 0.5 and is inactive when self.color.alpha is > 0.5
the idea being that if actor receives event touch is pressed and the game.triggerBall (integer) = 1 it sets the game.triggerBall to 0.. inactive
this seems to work about 60% of the time...
everything else works fine... its just that it randomly decides if this command works.. so its not full proof..
does any one have an idea of why this may or may not work?
I also have a boolean on the ball called alpha and in the game scene but these do not work for me...
thanks, i appreciate any feedback on this
Comments