Load - Save

LAdrianLAdrian Member Posts: 237
edited November -1 in Working with GS (Mac)
Hi guys!
I was wondering what is the usual workflow for when I need to save the game settings so after I quite and I enter again I can resume where I left.
I would like to save each time the level ends so my question is do I need to manually put a save attribute for each attribute I want save?
I have: Level number, Hero life, Hero no. of lifes, ammo for each of the 10 fire weapons, money, for each weapon if has been bought or not, what's the active weapons plus some more I'm sure.
Isn't this like gonna take for ever? Is there an other way to do it?

Thank you,
Adrian

Comments

  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    Yes, you have to put save behavior for every attribute you want to save. You don't have so many attributes to save - in my game, I'm saving about 200 attributes - it took me almost two days to finish it.

    Good luck!
  • LAdrianLAdrian Member Posts: 237
    Thanks ;) Do you notice any slow down when it saves the attributes?
  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    Always glad to help :)
    Nope. I was surprised how fast it is - I have a rule with display text behavior, and after saving, this rule makes the text (Saved) visible. From clicking on Save button to "Saved" text, is just a few seconds, maybe up to 30 on the old iPhone.
  • whity7whity7 Member Posts: 58
    I need help saving the location of the actor. I was able to save the money and vehicle number in my game but can't figure out how to save the location of my actor when pressing the save button.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    On the actor have save attribute, in attribute browser go to self(the name of the actor) and youll see position
  • whity7whity7 Member Posts: 58
    So on the save actor if I type self.car on the save button actor it will save the position of the car?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    self.Position.X
    self.Position.Y

    Youll have to save both if you want to save both horizontal and vertical position.
  • whity7whity7 Member Posts: 58
    I get that but how do I load the game exactly where I was when I saved from the title scene?
Sign In or Register to comment.