How do I go to an URL using a button

Get help using Construct 2

Post » Tue Jul 05, 2016 1:27 pm

Hi! I want to be able to go to an URL when a button is clicked. So when I click the button I ask the browser to go to the address I want. But when I run the game it is not working. The button doesn't react. Why?
B
4
Posts: 30
Reputation: 266

Post » Tue Jul 05, 2016 3:35 pm

Please post a screenshot of your event sheet or a capx.

Where are your game uploaded? Is it on your local host? Scirra arcade? NWjs? Android? The host may restrict outgoing links, so it is useful if you tell us more details about it.
ImageImage
B
44
S
14
G
10
Posts: 167
Reputation: 7,781

Post » Tue Jul 05, 2016 3:39 pm

You need to add the "browser" object to your project.

Button is clicked -> BrowserObject.GoTo (URL)

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
84
S
34
G
40
Posts: 3,032
Reputation: 30,499

Post » Tue Jul 05, 2016 6:01 pm

How can I add an image here?
B
4
Posts: 30
Reputation: 266


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests