Do i need to save game/global attributes?

guillefaceguilleface Member Posts: 1,014
edited February 2012 in Working with GS (Mac)
say i create a game attribute boolean and is false,in a menu actor when i click a actor i change that attribute to true, now i close the game, when i open the game, is this attribute will be true or false in the device? my adhoc thing is not working right now and i need to know this. thanks

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    If you close it on your device, and reopen it, it will be set to false.
    You need to Save that attribute with the "Save Attribute" behavior.

  • guillefaceguilleface Member Posts: 1,014
    ah ok because i thought i had to save only self attributes, so if i have a game attribute called money, i need to save and load this game attribute all the time so when i play the game again i have the same amount ?
  • calvin9403calvin9403 Member Posts: 3,186
    yep you will need to save it every time it changes
Sign In or Register to comment.