How do I make a save game for mobile?

  • Hey,

    I wonder if you help me on that.

    I just made an game with 20 levels and I will uploaded soon on mobiles android, I just use basic save, like (save "mysave") and load (load "load mysave") and i added a bottom for the user for saving levels, please can any one show me the easiest way to save game (storage for mobile) and also for levels because every level i make one layout and event sheet for each level.

  • I think you could just store the level number in a local storage when you complete a level. So when the game starts, you can load the layout with that number.

    Hope that helps!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you aquadijoib for your answer, can you give me an explanation on that please cause I am new on construct 2

  • SaRaB,

    Do you want to export your game with NodeWebkit as an .exe file? Because I actually haven't got that much experience with local storage (There was webstorage before and for me that was better ). If you use NodeWebkit (NW.js) I have a better idea I think. Then you would have a textfile that contains the level save. Why does the normal save not work?

  • SaRaB,

    Ok just forget about what I said <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy"> . The normal save works just fine with multiple layouts. I created a example capx for you and added some comments. In my example you can click on a button to change between 2 levels/layouts and click on the save button to save the game. When you reload the example, your last save state will be loaded.

    Here is the download link: https://drive.google.com/file/d/0B7r2WY ... sp=sharing

    I hope this helps! <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    EDIT: Tell me if the link works I'm not sure <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Thank you aquadijoib, for you information, but i new this method and how to do, actually i did this on my game,

    my question how to save automatically the level, and the user where does he arrived to?> so i mean with out clicking bottom there is a method for mobile save so that makes easy for the user when he play, and i do not want to tell the user click this bottom to save your game, some of them does not now these bottoms.?

  • SaRaB,

    You could just make a sprite that is invisible and when the player goes over it, On collision with... triggers and the game is saved.

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