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
101
S
32
G
11
Posts: 1,546
Reputation: 21,727

Post » Thu Aug 30, 2012 7:48 pm

I believe you'd have to use AJAX!
B
37
S
11
G
6
Posts: 962
Reputation: 11,259

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
101
S
32
G
11
Posts: 1,546
Reputation: 21,727

Post » Thu Aug 30, 2012 8:12 pm

There actually seems to be a few plugins that do this :).
B
101
S
32
G
11
Posts: 1,546
Reputation: 21,727


Return to How do I....?

Who is online

Users browsing this forum: plinkie, Yahoo [Bot] and 10 guests