1

For standalone game, what's the best time to save game data, such as player's coins, level, skill data and so on?

Should the data be saved before quitting? Or whenever it changes? Or something else?

Andy
  • 11
  • 3
  • 1
    Why not let the player save by his own? – Ocelot Aug 21 '15 at 09:26
  • 1
    I see at least three other options : 1) as @Ocleot said, the user can save by his own 2) save every xxx seconds, and 3) save at 'important' moments of the game. What's nice with 3) is that you can prevent the possible slow-down of the saving if you do it while something very simple is happening in the game (a door opening / a non-playable cinematic moment / ... ). – GameAlchemist Aug 21 '15 at 10:21
  • save on every change, this is viable if you treat your save file as a database where you can quickly write only what changed. It won't fit every game. 5) a combination of letting the player decide and saving automatically every xxx seconds. Which provides control to the user, but also covers for the case where the player forgot to save and there was a crash. Aside from those options consider that having auto saves to roll back to in case of a corrupted save is a good plus.
  • – Theraot May 31 '17 at 17:04