How do I have auto saving in an iOS App

Get help using Construct 2

Post » Sat Feb 15, 2014 2:07 pm

Hi everyone! My question today is how can I have a save system for iOS and maybe Android apps, where the game saves by itself? If you've ever played any apps you will probably notice that the after killing the app and restarting, it shows the usual logo and title screen, and all levels and progress is saved. Is there a way to do this with C2? Thanks!
B
20
S
6
G
2
Posts: 91
Reputation: 4,597

Post » Sat Feb 15, 2014 2:22 pm

I would create a function that takes care of my saving duties. Then when it's appropriate in the game for autosave, just call that function.
B
101
S
32
G
12
Posts: 1,549
Reputation: 21,993

Post » Sat Feb 15, 2014 2:41 pm

Another question which I should have asked earlier, does WebStorage work on iOS native apps? Or is this only for browser based games? Thanks for the reply @ArcadEd
B
20
S
6
G
2
Posts: 91
Reputation: 4,597

Post » Sat Feb 15, 2014 3:41 pm

I know it works with Phonegap, Ejecta and CocoonJS. Use local storage.
B
101
S
32
G
12
Posts: 1,549
Reputation: 21,993

Post » Sat Feb 15, 2014 5:33 pm

There really are no native apps with C2 @GTGJon, all these wrappers for mobile basically put a browser around the html5 for you. So all the browser based stuff pretty much works on each platform. The exceptions are the open URL actions. You need to use the open in another tab/window type options for that as it will trigger an actual browser to render the url for you.

You can also use the built in save game system as well.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,603


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests