Retrieve Info from URL

Get help using Construct 2

Post » Thu Aug 30, 2012 6:37 pm

Say I launch my game with the url iretrogames.com/html5/word?info=moreinfo

Is there a way for C2 to bring in that value of info? In this case, moreinfo.

Thanks
Ed
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Thu Aug 30, 2012 7:48 pm

I believe you'd have to use AJAX!
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Thu Aug 30, 2012 8:09 pm

With AJAX you need to supply a URL. In my case, the information in the url I use to launch the game might change with each visitor.

So when someone goes to my game url using www.iretrogames.com/html5/word?info=thisinfo

I need construct to bring in thisinfo into a global variable if possible.
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Thu Aug 30, 2012 8:12 pm

There actually seems to be a few plugins that do this :).
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993


Return to How do I....?

Who is online

Users browsing this forum: flemmig, Matthew de, semaso, Skebab, Virpoja and 20 guests