Get Data into the Game from extern Cookies/Session

Get help using Construct 2

Post » Mon Jul 09, 2012 9:54 pm

I've got a Page where a User can login.
Now i need the User Id in my Game to send in to a highscore skript via Ajax. How can i access it?
B
1
Posts: 1
Reputation: 227

Post » Tue Jul 10, 2012 4:49 pm

youd have to get it via ajax. Thats why I made my login with c2 instead
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Tue Jul 10, 2012 7:29 pm

Correct, you will need to add the AJAX object to your project.

Then use the objects Request URL (http://yourdomain.com/somepage.php?request=user which will return what ever data you are looking for.

Then use the AJAX objects 'On Completed' to store the response in a variable via AJAX.LastData.
B
12
G
1
Posts: 19
Reputation: 1,066


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests