How do I save option to remain even though close the game?

0 favourites
  • 11 posts
From the Asset Store
With Bane Cinematics, your world will remain terrifying yet wonderful!
  • Hello, I have a problem, how I can create a save option, to remain even though close the game on android?, for example, if I put the sound to be silent, I want that value remains when re-entering the game (sorry for my english is not very good)

  • Hello, I have a problem, how I can create a save option, to remain even though close the game on android?, for example, if I put the sound to be silent, I want that value remains when re-entering the game (sorry for my english is not very good)

    You'll need to use the system "save" events.

    Ex: On left clicked on "ChangeSoundSprite" -> System - save "save1"

    And then: on start -> System - load "save1"

    P.S. The game looks really cool btw!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You could also try the "LocalStorage" object.

    Actually, I'd recommend you use the "LocalStorage" object rather than a whole savegame system since LocalStorage gives you control over what you save, takes up less space and consumes less CPU.

  • You could also try the "LocalStorage" object.

    Actually, I'd recommend you use the "LocalStorage" object rather than a whole savegame system since LocalStorage gives you control over what you save, takes up less space and consumes less CPU.

    I used but it does not work, when I leave the game and I get back into again the options are not saved, I do not know if I'm doing something wrong I may have to try system "save" events...

  • So, how did you implement LocalStorage?

    Could you upload a screenshot?

    Also, make sure to make the event-chain look like this when getting the key:

    Get item "volume"
    On item "volume" get
         -> set volume to LocalStorage.ItemValue[/code:2lu5jke2]
  • So, how did you implement LocalStorage?

    Could you upload a screenshot?

    Also, make sure to make the event-chain look like this when getting the key:

    Get item "volume"
    On item "volume" get
         -> set volume to LocalStorage.ItemValue[/code:33q2yy53]
    
  • I guess, "sonido" is your sound volume?

    Seems like you're doing everything correctly.

    No idea what's the issue here. Still, I wouldn't switch to the save system, but rather wait for somebody more capable than me to answer this for you.

  • Thank you anyway randomly

  • You forgot to put in a command that when you press the button, the information should go into local storage. Here download my simple shop system capx file to see the commands. This capx will help you with this problems and any other future problems with local storage

    http://www8.zippyshare.com/v/lMXzxvFU/file.html

  • You forgot to put in a command that when you press the button, the information should go into local storage. Here download my simple shop system capx file to see the commands. This capx will help you with this problems and any other future problems with local storage

    http://www8.zippyshare.com/v/lMXzxvFU/file.html

    Thank you!!!!!!!!! Now it works

    I had the command, but was wrong, thank you very much for your help PixelPower <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

  • > You forgot to put in a command that when you press the button, the information should go into local storage. Here download my simple shop system capx file to see the commands. This capx will help you with this problems and any other future problems with local storage

    >

    > http://www8.zippyshare.com/v/lMXzxvFU/file.html

    >

    Thank you!!!!!!!!! Now it works

    I had the command, but was wrong, thank you very much for your help PixelPower <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    No problem I hope your project comes out great.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)