How do I provide embed code for my web game?

Get help using Construct 2

Post » Wed May 06, 2015 8:39 am

I built a browser game and I want to make a button when user click it he get embed code for his site and my game will work on other sites. (Similar to YouTube's embed code). Is it possible?
B
13
S
2
Posts: 95
Reputation: 861

Post » Wed May 06, 2015 3:06 pm

You must use Iframe.

See Youtube's embed code:
<iframe width="560" height="315" src="https://www.youtube.com/embed/IDVIDEO" frameborder="0" allowfullscreen></iframe>

You export your game from C2 with Export HTML5 / Embed style

On your server, you upload your game http://www.mywebsite.com/MYGAME/

Then, you write a html code like:
<iframe width="width_you_want" height="height_you_want" src="http://www.mywebsite.com/MYGAME/" frameborder="0" allowfullscreen></iframe>

And you put it on your html page.
B
18
S
4
Posts: 83
Reputation: 2,083

Post » Thu May 07, 2015 1:38 pm

cool!!!
B
13
S
2
Posts: 95
Reputation: 861


Return to How do I....?

Who is online

Users browsing this forum: ivanski1983, marcoscodas, Yahoo [Bot] and 13 guests