my Button doesn't work

Discussion and feedback on Construct 2

Post » Tue Jun 06, 2017 5:56 pm

Hi Community,

I have a game on the Scirra Arcade
https://www.scirra.com/arcade/action-games/fidget-spinner-moon-defender-17906

I've created a button on the menu page to go to my YouTube page.... but when I click it, nothing happens.

can this be achieved in Scirra Arcade?

Thanks,
Roberto
B
5
S
2
Posts: 63
Reputation: 628

Post » Tue Jun 06, 2017 6:36 pm

You need to add the browser plugin to your game first.

Then on button click, as action do browser -> go to url, and put your youtube link there.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367

Post » Tue Jun 06, 2017 6:51 pm

Hi imhotep22,

Sorry, I forgot to add to above,
I have a Browser plugin > 'OpenURL in new window' already assigned to the button.
URL: "https://youtu.be/WFYdhmYtAPs"
Tag "NewWindow"

It works in a PC browser window but sadly not in Scirra Arcade :(
Roberto
B
5
S
2
Posts: 63
Reputation: 628

Post » Tue Jun 06, 2017 7:18 pm

Weird I thought you forgot to add the plugin, but if it works fine on browser and not on the arcade, it probably has to do something with the arcade export option, maybe its a bug, you can report it here.

website-issues-and-feedback_f158
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367

Post » Tue Jun 06, 2017 7:21 pm

Thanks imhotep22 ;)
B
5
S
2
Posts: 63
Reputation: 628

Post » Wed Jun 14, 2017 12:03 pm

Okay so I did some reading, and it turns out the arcade blocks any external url on purpose for security measures.

Currently the Arcade only supports the built-in plugins and behaviors, except for the platform specific plugins (like the Windows 8 object). Also, the Browser object has limited features on the Arcade: any actions which can navigate to a different page are blocked for security reasons. Currently all third-party plugins and behaviors are not allowed. We'll be looking to improve this in future by adding more support, but each plugin and behavior must be carefully reviewed first to ensure the Arcade remains a safe and secure place to play games.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367

Post » Wed Jun 14, 2017 7:44 pm

Thanks imhotep22, that makes sense ;)
B
5
S
2
Posts: 63
Reputation: 628


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 17 guests