Construct2 game save? HTML5

Discussion and feedback on Construct 2

Post » Wed Mar 20, 2013 10:43 am

Is there a database access on Construct 2 ?
B
40
S
9
G
5
Posts: 127
Reputation: 6,609

Post » Wed Mar 20, 2013 11:20 am

@Sylvain , check for AJAX ... And mySQL
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Wed Mar 20, 2013 3:27 pm

So WebStorage of HTML5 acts very much like cookies, but if more flexible. It does persist like Ashley said after all browsers are closed and after the computer has been turned off. But its downside is IF a user clears their cookies AND unchecked (in IE) the Preserve Favorites and Websites data checkbox it will clear the WebStorage.

You cannot write to XML or other files for long term storage because as someone has previously said, that is a limit imposed by the Browser and is a security violation.

So posting to a website/URL and that triggering a save to an online database is the only option I can think of at this time. You can also allow players to play offline and when they are back online have it save to the web those changes, but not sure how that would be coded in C2.

The ideal long term solution would be for C2 to enable support for SQL Lite databases on the local computer much like Apps do on Mobile.

Brett
B
21
S
7
G
1
Posts: 128
Reputation: 3,076

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: newt and 7 guests