How do I make save files with NW.js?

0 favourites
  • 3 posts
From the Asset Store
Source File, music and art pack for Android Negotiator
  • Hey all,

    I am working on a pretty large metroidvania and I am at the point where I need to focus on the save file system. I thought I could simply use the save and load system actions but they don't seem to work when exporting and playing on NW.js, which is what my plan is. After reading the documentation, it appears the save and load files only work in the browser? I am generally confused by how they work. I am aware that I could use local storage to store keys, but I'm hoping there's a better way (since I need to be able to save things like enemies and items with the persistent behavior).

    Basically I'm asking if there's a way to save the state of my game (or even just save all the variables and persistent objects) so that when the player closes the game on NW.js and opens it again, the save file is still there?

    Any ideas or explanations of save and load would be very helpful. I am still new to the concepts and I'm trying to figure it out.

    Thanks!

  • The built-in savegames feature should work fine in NW.js as well.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The built-in savegames feature should work fine in NW.js as well.

    How so? I downloaded the folder with the executable and I use the save feature to save to a slot, then that save works as long as the exe is running. When I close it and reopen it, the save file either didn't save or is not there. Am I using the save load feature wrong, or is there something I'm missing?

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