GameSalad randomly changes my attributes! What???
adambowker98
Member Posts: 57
Ok, so I have recently added a store to my newest game (it's a secret, so I can't tell you what it is!). I have Boolean attributes for each character available in the store that are changed to true if the character has been purchased, so you can then use that character.
As soon as I launch the game, everything works fine. All of the attributes are false until I buy a character, then that one is true. So I go play a level with my new character, and go back to the store to buy another one -- but all the attributes have been made true. I can freely use any characters without paying for them.
This is a serious GameSalad bug. Is anyone else having this issue, and if so, have you found anything you can do to fix it?
Thanks,
Adam
As soon as I launch the game, everything works fine. All of the attributes are false until I buy a character, then that one is true. So I go play a level with my new character, and go back to the store to buy another one -- but all the attributes have been made true. I can freely use any characters without paying for them.
This is a serious GameSalad bug. Is anyone else having this issue, and if so, have you found anything you can do to fix it?
Thanks,
Adam
Comments
How? Sounds more like an issue with your code. You will need to give some more details to how you "secret" store is set up in order for peeps here to help. A screen shot of your set attributes, rules and associated behaviors would help in aiding you.
https://www.dropbox.com/s/jfw4h3tjkkuxxdv/Screen Shot 2013-02-01 at 1.46.53 PM.png
https://www.dropbox.com/s/nwj720klatmollv/Screen Shot 2013-02-01 at 1.45.49 PM.png
https://www.dropbox.com/s/3pk1ps4dmymn3h0/Screen Shot 2013-02-01 at 1.45.57 PM.png
https://www.dropbox.com/s/ckt90bcpr6wgftk/Screen Shot 2013-02-01 at 1.46.38 PM.png
The "game.Kangaroo Bought" attribute is the one used to tell wether or not the character is bought.
The "game.What Character?" tells the game which character is being used, and to change the image of the main player to the new character's image.
The "Can't Afford" rule is what happens when you can't afford the new character.
The "Change Character if Purchased" rule is what happens if you have already bought the character, but are currently using a different one and want to switch back.
The "Buy Character in New Scene" is if you want to buy the character, it changes to the scene where you can buy.
The "Buying Character" is if you hit "BUY" and buy the character.
https://www.dropbox.com/s/zxao09ssa5s5zqm/Screen Shot 2013-02-01 at 1.59.13 PM.png
In these cases, your "secret" really can't stay so much a secret. You need to provide more info to solve the problem. If you send the project to me, I'd be willing to help, but can you coop with the fact I've seen your secret? >.<
And @DevilDog I don't mind if anyone knows, I just didn't want anyone stealing my idea and then launching the game before I finished mine.
Yeah I understand that, I'm just saying sometimes to get things resolved you have to include more people. If you're that worried, try making a mock up of the app, with the issue, without your "secret" images and text.
@DevilDog I'll try that. Thanks
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I have made an Ad Hoc but the issue still occurs.
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!