Boolean issue. When touched is pressed.. works. Touch again = Fail.
So i've got a button actor that changes another actors is image.
Button:
When touch is pressed change att game.boo to true.
On image actor if game.boo = true change image.
Works fine.
but when rule for button is pressed AND
game.boo = true change game.boo to false.
image actor if game.boo = false change image back.
No idea why that wouldn't work.
PS please don't scald me after my post about "I'm finally getting attributes yay!"
thanks ; )
Button:
When touch is pressed change att game.boo to true.
On image actor if game.boo = true change image.
Works fine.
but when rule for button is pressed AND
game.boo = true change game.boo to false.
image actor if game.boo = false change image back.
No idea why that wouldn't work.
PS please don't scald me after my post about "I'm finally getting attributes yay!"
thanks ; )
Comments
Put the rule in the rule... Haha that makes no sense...
Maybe this will help...
Ace
Ace
Works perfectly now! Only just learned about the otherwise rule. Gotta get the hang of it!
Send me a email, would love to know how that million dollar game of your is going.
Thanks again. : )
Ace
I'll be off in 30 mins
Back on in........... 17 hrs from then.
Ace
ozboybrian
change attribute game.boo to 1-game.boo ( game.boo as an integer ) and then test for 0 or 1 in your image actor.