get browser address bar value

Discussion and feedback on Construct 2

Post » Tue Mar 25, 2014 7:13 am

Hi guys..
I need to get Value from Browser Address Bar something like
mydomain.com?location=1
So i need to get location value and fill to global variable

please help me.. i do need it.
B
4
S
1
Posts: 34
Reputation: 443

Post » Tue Mar 25, 2014 7:19 am

The browser object can help you on this, add it to your project:

https://www.scirra.com/manual/110/browser

I think that in you case, QueryParam("location") is the expression you are looking for
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Tue Mar 25, 2014 7:20 am

use system set variable value and use Browser.QueryParam("location")
B
9
S
2
Posts: 76
Reputation: 709

Post » Tue Mar 25, 2014 7:25 am

Thank you Kaiko.. its work, and resolve my problem..
B
4
S
1
Posts: 34
Reputation: 443


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests