Custom PHP Database/High Score > Mobile?

Discussion and feedback on Construct 2

Post » Wed Mar 26, 2014 10:45 am

Sorry for the possible confusing thread title!

Hi,

I was wondering as I made a custom high score table/database in a game, and that used a couple of PHP files, and within Construct 2 it used the AJAX events to do real time updating of the high scores from the database while in game. Now this was all well and fine as it was exported as purely html5.

Now If I wanted to include the same high score table and custom database, would that still work like normal even if I exported the game to iOS and Android devices?

That's all, thanks guys! :D
B
2
Posts: 4
Reputation: 158

Post » Wed Oct 22, 2014 10:20 am

I tried the same thing, but i wasnt able to make it work. I think it has to do with cross-browser security or something.

Please let me know if you find a solution! :- )
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Wed Oct 22, 2014 10:45 am

have you looked into JSONP (json with padding)? this technique is known to be used on mobile apps to avoid CORS problems.
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,662

Post » Wed Oct 22, 2014 4:22 pm

It works exactly the same. I do this with my current project: fully tested on Android and it's working perfectly. iOS I can assume will work, but I'll have to confirm once it's live.
B
57
S
15
G
11
Posts: 912
Reputation: 12,606


Return to Construct 2 General

Who is online

Users browsing this forum: wmnjunior and 0 guests