Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: jess84 on March 07, 2014, 09:42:45 PM
-
Hi,
So I've just bought Easy Save 2, and was wondering about best practices for saving/loading.
My game is tablet/phone based.
I'm wondering whether I should be using individual actions to save single variables when they are changed in-game, (which is more work to setup) or to have actions that save a batch of variables at the same time - even if only one or two of them have changed?
For example with my 100 levels, if I want to save their highscores (100 different Ints) would saving 100 in one go be too slow or expensive? If it shouldn't take more than a second or two, then I'd prefer to have one fsm that I can reuse - rather than going to the effort of creating unique ones for each level.
Thanks in advance,
-
Hi,
don't go there indeed. Always load and save when the user is in the "win" screen or pause screen and ONLY load and save variables you need or that indeed changed. so essentially, you should only load ONE best score for a given level and save only ONE score at the end of a level. Avoid building a routine where you load/save 100's of data from the playerprefs.
Bye,
Jean