a way to detect if attr. i changed?
the19thbear
Member Posts: 102
Hi.
is there a way to check if an attribute has been changed?
-everytime attr. x is changed=display text
thanks alot!
is there a way to check if an attribute has been changed?
-everytime attr. x is changed=display text
thanks alot!
Comments
If it only changes once, you can use a boolean. When attribute self.XX = true display text.
Or if it's an integer I would set up another integer attribute and make a rule so that when attribute self.YY does not equal self.XX display text and change attribute self.YY to self.XX.
like Game.attribute.
And then just do what you think you should do till the event happens and if the display text doesn't change then the attribute hasn't been set up properly.
I learnt that from Tshirt Booth!
-----------------------------------------------------
Join the GameSalad Community and have your game noticed for free.
http://www.facebook.com/ListYourTopiPhoneGame
List your Top iPhone Game on FaceBook!