Save whole data on ESC pressed (if you have an ESC menu)
Save whole data on Left-Alt pressed (if player is about to ALT-F4)
Save data on a timer that ticks every 1-2 seconds. (see below)
These are some “smart-saving” methods I could think of. What do you guys think, what else could be used? Are these methods good/bad? Will they cause optimisation issues?
In my case, I’m working on a small RPG project so I have to consistently save player data (stats/items/experience/currency/location/etc.).
Feel free to drop down any tips/tricks you use/have used for your games.
They are some ideas that came to my mind about making a simple auto-save system
I was wondering if this case was a bad idea, could you elaborate what might happen if this was to be implemented? Currently I just have the first two options in my game.
I mean, it’s not a bad idea per se. It’s just that saving non-stop may not be necessary. You could consider a smartish system:
autosave if no save was done in the last minute
autosave only if data actually changed
When the player: moves, fiddles with inventory, clicks through dialogue, flips through options - set a dirty flag in the save game system stating that data needs saving. This could start a timer; if no other save happens in the next 60s, autosave now. Clear dirty flags. Any type of saving that you have already set up clears those flags as well.
pop an autosaving icon to warn the player?
let them disable autosaving / control how often it happens?