Get the GET/POST parameters?

Get help using Construct 2

Post » Mon Aug 20, 2012 10:24 pm

When the game is launched, it is done from a web site where you are logged in (so have a session)

The game needs to be able to access the session parameters to authenticate.

Also, URL parameters migh say what launage to use, or what skin to load.

how does one access & use these?

If they are not accessable, then I cant see how construct 2 can be used to write games lauched by a logged in user.
B
15
S
5
G
2
Posts: 357
Reputation: 3,691

Post » Mon Aug 20, 2012 10:38 pm

The browser plugin does query string, language and other useful infos like that.
In conjunction with the AJAX plugin, here you have some communicating with your website in both ways.
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,998
Reputation: 57,791

Post » Mon Aug 20, 2012 11:13 pm

Brilliant, thanks. Got the Ajax working a treat too.
B
15
S
5
G
2
Posts: 357
Reputation: 3,691

Post » Mon Jan 14, 2013 10:01 am

nameSend = 'Kwanta';
varScore = 100;

"http://localhost/gameData/connect.php?name='$nameSend'&score='$varScore'" ==code php

I want code construct2
B
6
S
1
Posts: 3
Reputation: 649


Return to How do I....?

Who is online

Users browsing this forum: adi pratama, Messy1001 and 25 guests