How do I save on mobile?

Get help using Construct 2

Post » Sun Jul 13, 2014 6:27 am

Hi.

I've been searching for an answer but I can''t seem to find any solution on how to save on a mobile device. I'm working with android now and my game runs nicely with Cacoonjs but the webstorage does not work on my android phone. (Works fine while testing on computer browser)

Then I tried crosswalk and the game lags as hell and save doesn't work here either.

So my questions are:

1. How do I save on my android phone?

2. How do you export your game with crosswalk so it runs smoothly?

My game isn't even heavy and its totally unplayable with crosswalk :/ Can't understand what I should do.
B
58
S
25
G
14
Posts: 792
Reputation: 13,300

Post » Sun Jul 13, 2014 9:36 pm

try to use the save/load system & use arrays. IMHO, That's should work!
ImageImageImageImageImage
B
57
S
16
G
5
Posts: 852
Reputation: 11,536

Post » Wed Jul 16, 2014 6:50 pm

Thank you for your answer. I've tried the save load system now and it now saves the highscore during the session. But when I close the app and start it up again my highscore is gone. Any ideas how to save the highscore and global variables even when you close the game on mobile?
B
58
S
25
G
14
Posts: 792
Reputation: 13,300

Post » Thu Jul 17, 2014 12:05 am

I would be very interested in this as well, but mainly for WP8 and Windows Store.
Black Bobby The Hole RPG game Greenlit with 303 votes.
B
38
S
9
G
1
Posts: 173
Reputation: 3,231

Post » Thu Jul 17, 2014 12:42 am

@Anonnymitet: With the webstorage use "Set local key" instead of "Set session key". Be also sure to load those data from the webstorage on start of a new game. Otherwise you are just overriding data without taking advantage of it.

Check out the How do I FAQ for further examples of use of webstorage in the "Webstorage" section.

It does work on mobile. You're not the first, not the only and not the last to do games on mobiles.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,328
Reputation: 71,298


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests