GameSalad is randomly changing my attributes!

In my game, I have a store where you can buy new character. I have a "What Character?" attribute and 6 attributes for the 6 different characters to say wether they have been bought or not. For example, a Superman character has an attribute called "SuperMan Bought" that is either true or false -- true if it has been bought, and false if not.

My problem is this: When you buy your first character, everything is fine. You can only use that character and the default character. So, you go play with the new character and decide to buy another one. When you get back in the store, all of the character attributes have been changed to TRUE, letting you use the characters without buying them!

My code looks like this in the store image:
RULE:
If "Character" is touched AND Attribute "Character Bought" is FALSE:
Go to scene "Buy Character"

RULE:
If "Character" is touched AND Attribute "Character Bought" is TRUE:
Change image to "Character-Selected"
Otherwise:
Change image to "Character-NotSelected"


And my code looks like this in the "Buy Character" Button:
RULE:
If "Buy Button" is touched AND game.Money >= 40 (the price of the character):
Change Attribute game.Character_Bought to TRUE
Change Attribute game.What_Character? to 5 (the number of the character in the list)
Change Attribute game.Money to game.Money-40

RULE:
If "Buy Button" is touched AND game.Money < 40 (the price of the character):
Change Image to "Cant_Afford"

I don't understand why all of the Character_Bought attributes are being changed to TRUE when I have only changed one of them to TRUE. This issue occurs in the GS Viewer (on the computer) as well as the Ad Hoc build.
I appreciate any help I can get.

Thank you!

Comments

This discussion has been closed.