Hey Guys i want to know.....

Discussion and feedback on Construct 2

Post » Wed Sep 05, 2012 7:38 pm

But the C2 games for Android or iOS will be save the progress in the game?? I read that AJAX is not supported is the game if it isn't in the phone browser :'(
B
26
S
4
G
2
Posts: 23
Reputation: 2,518

Post » Wed Sep 05, 2012 8:01 pm

All I know is Web Storage still works in the EXE exporter because it's a HTML5 application wrapped up in a .EXE wrapper which also works like a browser just for that app.

I'm hoping/guessing that CocoonJS, PhoneGap and appMobi all work similarly, and if they do, then webstorage should store things locally in the app itself?

This is all just guessing, and wishful thinking.
Maybe someone else with more knowledge and experience in exporting games will know better.
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Wed Sep 05, 2012 8:25 pm

[QUOTE=Rory]
I'm hoping/guessing that CocoonJS, PhoneGap and appMobi all work similarly, and if they do, then webstorage should store things locally in the app itself?
[/QUOTE]

You're guessing right.
B
11
S
3
Posts: 224
Reputation: 2,028

Post » Wed Sep 05, 2012 8:50 pm

Knifegrinder, could you elaborate? Specifically, do you have knowledge relating to the data storage capacities of these tools across multiple platforms, and where that data may be stored?
B
28
S
6
G
5
Posts: 248
Reputation: 5,463

Post » Wed Sep 05, 2012 9:45 pm

I want to know it too please :)
Are the save files stored in xml files? I'm just guessing.
B
29
S
6
G
5
Posts: 148
Reputation: 5,084

Post » Wed Sep 05, 2012 9:56 pm

With google I came to this:

http://www.scirra.com/tutorials/321/how-to-make-and-name-save-game-slots/page-1

:)
B
29
S
6
G
5
Posts: 148
Reputation: 5,084

Post » Wed Sep 05, 2012 10:00 pm

Webstorage manual data entry.
Webstorage uses some hard drive space specifically attributed by the browser. You can store data in it, automatically tied to the URL from where the game/app is played, and retrieve it.

I can't tell for sure, since I don't have access to a mobile device, but I guess the cocoonJS and appmobi wrappers do have the same system, tying it to the local application that is storing the datas.

Check also the how do I FAQ looking for the keyword "webstorage" to see different examples of how to use webstorage.
Whether your target is mobile or desktop the usage of the plugin should be the same.Kyatric2012-09-05 22:01:25
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Wed Sep 05, 2012 10:09 pm

I have noticed that my level progress (webstorage) doesn't work with my cocoonjs. It's implemented correctly as it works fine with my browser. Not sure if there's anything I should be doing additionally to ensure it works.
ImageImage
Mr. Green - Platform/puzzle game out now!
B
24
S
7
G
1
Posts: 222
Reputation: 3,325

Post » Thu Sep 06, 2012 12:42 pm

[QUOTE=teahousemoon] Knifegrinder, could you elaborate? Specifically, do you have knowledge relating to the data storage capacities of these tools across multiple platforms, and where that data may be stored?[/QUOTE]

I can just post my personal experience.
Webstorage object works correctly on my device (Android 2.3.6) with:
Phonegap (Webstorage data saved correctly, saved data keeped even on app updates)
Appmobi (Only software renderer tested, webstorage works but there's a loss of data on app updates using appmobi update service)
CocoonJS (Webstorage works fine on my device, updates seem to work correctly)
B
11
S
3
Posts: 224
Reputation: 2,028

Post » Thu Sep 06, 2012 5:56 pm

@Knifegrinder Good to hear, my theory should be at least half right then. May be malfunctioning on some devices though as @FredQ reports the opposite result.
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests