Saving user input?

neoliminalneoliminal Member Posts: 3
edited November -1 in Working with GS (Mac)
Is there a way to save user configurations? I want to make a kick ball game where you can change your players statistics (Kicking, Running, Catching, Pitching) and increase them over time.

How do I save these things so next time they play they load?

Comments

  • fstltnafstltna Member Posts: 96
    You need to use the "load attribute" and "save attribute" actions to load & save your desired stats...
  • neoliminalneoliminal Member Posts: 3
    Rocking! Thanks!
  • mtcmusicmtcmusic Member Posts: 15
    So I could use this to give the user a choice of language (example, English or french) for my app and every time it is run, it will default to that language?
  • peachpellenpeachpellen Member Posts: 977
    Yes, you could.

    Like this;

    Save attribute "language" (or whatever you've called it) as XXX (XXX is they key, I'd call it language as well.)

    Then when the game loads;
    Load attribute "XXX"

    It is the same way as you'd do a high score :)
  • neoliminalneoliminal Member Posts: 3
    I was trying to mess with this and the car race demo. I tried to save a color and then load that into the 1st car actor. I couldn't seem to get it to work. Is there a tutorial on loading attributes into actors?
Sign In or Register to comment.