Is there a way to permanently save an attribute?

deheciledehecile Member Posts: 126
edited November -1 in Working with GS (Mac)
i need to save 2 attributes, called x01 and y01, then i want to be able to somehow reset the game, and save the atributes again, but still have my old ones, i then want to call those back later, what should i do. i can explain more indepth if you dont understand whats happening, thanks.

Comments

  • crazyfishdevcrazyfishdev Member Posts: 283
    yes, the save attribute will save your attribute and then to load just use the load attribute. I think the reason that it is not working is saving attribute does not really save them in the editor... but it works great on iphone/ipad.
  • deheciledehecile Member Posts: 126
    oh, but i need to save the attribute about 300 times, so the problem is that when i save it once, i want it to reset the scene, and save it again, and i want to diffrent saves, but im worried its gonna overwrite the first save
  • crazyfishdevcrazyfishdev Member Posts: 283
    Ok I think I understand. You then need to make other attributes and set the other attributes to the one that you are trying to save, then save the others, I know it will take a long time but that is the best way I know of.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    you could probably save different values for the same attribute using different keys but you would only be able to access one of the saved attributes at a time. I don't think it would be any less rules than just having a ton of attributes so not sure how it would help.
  • tcla75tcla75 Member Posts: 71
    Hi sorry about bumping an old thread but I just wanted to bring up a point crazyfishdev talked about when he said
    " I think the reason that it is not working is saving attribute does not really save them in the editor... but it works great on iphone/ipad. "

    I'm wondering if that is the problem I am having. I have a save and load attribute set up for a high score because I have to have an actor reset the game after game over. Otherwise when I go back to start a new game it loads the level but from when I died at game over.
    When I click on reset game actor and go back into look at my game high score the score has been reset despite the save and load attribute. Is that because I am playing the game in GS?
  • DizkoDizko Member Posts: 498
    Save/Load attribute doesn't work in the normal GS preview, it has to be running on the phone.
  • sparkzillasparkzilla Member Posts: 152
    Just to clarify: Save/Load attribute works on the GS Viewer.
Sign In or Register to comment.