Clarification on FlxSave #2379
-
I've done a bit of research about FlxSave, but I cannot find where the save data is stored when you bind a salveslot like this:
The information must be somewhere right? I even tried to specify a path but the file is nowhere to be seen.. Also I'm wondering.. for saving information in general, it's better to use FlxSave or to create a file directly with sys.FileSystem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
AFAIK for html5 the save data is saved in the browser, so if you use a different browser or incognito/private tab the data will be wiped, or different. I'm not sure if it's in the cookies or localStorage (or neither), never really looked into it. If you want to actually see what data is saved, breakpoints and traces are your friend. I think for most use cases FlxSave is fine. If you wanted to have an exported save file one that the user can move about at will I believe you need to serialize the data which is beyond my gamedev knowledge. |
Beta Was this translation helpful? Give feedback.
AFAIK for html5 the save data is saved in the browser, so if you use a different browser or incognito/private tab the data will be wiped, or different. I'm not sure if it's in the cookies or localStorage (or neither), never really looked into it.
If you want to actually see what data is saved, breakpoints and traces are your friend.
I think for most use cases FlxSave is fine. If you wanted to have an exported save file one that the user can move about at will I believe you need to serialize the data which is beyond my gamedev knowledge.