How do I erase savegame on mobile devices?

Get help using Construct 2

Post » Tue Jan 17, 2017 11:35 am

I have an app on mobile (made via cordova in webview). And couple of savegames. This savegames are too big so i need to erase old ones somehow because it exceeds localStorage/indexedDB limits. Is there any legal way to do it?
Creator of MiniDayZ
B
22
S
2
G
2
Posts: 75
Reputation: 1,858

Post » Tue Jan 17, 2017 12:45 pm

Did you make the game or did you just download it?
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Tue Jan 17, 2017 1:15 pm

jeffige wrote:Did you make the game or did you just download it?


Make. My current save is about 2mb usually, but in some cases when i try to resave in same slot(on mobile) i got save error.
Creator of MiniDayZ
B
22
S
2
G
2
Posts: 75
Reputation: 1,858

Post » Tue Jan 17, 2017 1:42 pm

How many slots do you have?

Can you choose which slot to save in?

You may have to add a 'delete save'. I don't use saves so i may be pulling this out of thin air. I would look at something like:

Creating a 'clear storage' button. On touched button (delete save) then choose which slot you want to delete. Again, i've never used 'save game' or anything like that, so i'm not sure of the logic that goes with it.

In my game i have 2 invisible objects, that when touched in sequence will clear my entire storage. This is only for testing purposes, but still in that general area.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Tue Jan 17, 2017 2:28 pm

jeffige wrote:How many slots do you have?

Can you choose which slot to save in?

You may have to add a 'delete save'. I don't use saves so i may be pulling this out of thin air. I would look at something like:

Creating a 'clear storage' button. On touched button (delete save) then choose which slot you want to delete. Again, i've never used 'save game' or anything like that, so i'm not sure of the logic that goes with it.

In my game i have 2 invisible objects, that when touched in sequence will clear my entire storage. This is only for testing purposes, but still in that general area.


I have 3 slots now, i use default construct save/load. It places savegames as JSON in localstorage separated place that cant be erased by default construct 2 "clear storage". Default construct save/load function dont have any save erasing functions. Is i right @Ashley ?
Creator of MiniDayZ
B
22
S
2
G
2
Posts: 75
Reputation: 1,858


Return to How do I....?

Who is online

Users browsing this forum: Artcadev and 42 guests