when to save an attribute?

as7494as7494 Member Posts: 70
edited November -1 in Working with GS (Mac)
when should an attribute be saved? Should it be saved as often as possible, or does it automatically get saved when the application quits? Also can multiple instances of the same attribute be saved to the same key?

Comments

  • sebmacflysebmacfly Member Posts: 1,018
    If you don't save, your attribute will be reseted if you restart the app.
    You have to save your attribute when you need to do it... Same for load, depend on your app.

    I don't think that you can do multiple instances
  • as7494as7494 Member Posts: 70
    so if i save to a key 123, i wont be able to save the same attribute to the same key?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Did you mean you won't be able to save a different attribute with the same key? If so, then no, you need a different key for each attribute.

    Best to use Save attribute just before going into the next scene.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • as7494as7494 Member Posts: 70
    same attribute to same key...
    lets say if i have an attribute in 2 different scenes can i save them to the same key?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi as7494, yes, you sure can. That's the way to do it, as they say! :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • as7494as7494 Member Posts: 70
    thanks a lot guys :)
    sorry for the stupid question im just 16 :P
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    No worries as7494, don't worry about it, there are no stupid questions on this Forum; if ya don't know, ya don't know - so you ask, then ya do know! :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • QbAnYtOQbAnYtO Member Posts: 523
    i would save at the end of every level :p
Sign In or Register to comment.