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
100
S
31
G
11
Posts: 1,552
Reputation: 21,522

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,254

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
100
S
31
G
11
Posts: 1,552
Reputation: 21,522

Post » Thu Aug 30, 2012 8:12 pm

There actually seems to be a few plugins that do this :).
B
100
S
31
G
11
Posts: 1,552
Reputation: 21,522


Return to How do I....?

Who is online

Users browsing this forum: angryvel760, Beasthemu8, chrislechat, LightningFury, williamsptc and 4 guests