How do I embed a game app to a blog with html support?

Get help using Construct 2

Post » Fri Jan 29, 2016 9:31 pm

Hello everyone, I have a question that I'd love to resolve it:
How do I embed a game app that did the construct exported to HTML5, to a blog that supports HTML?
The game externalmente runs on another domain, but want users to access through my blog.
What code do I need to put in the new post of my blog?
B
29
S
9
G
3
Posts: 280
Reputation: 4,187

Post » Sat Jan 30, 2016 4:38 pm

Pode's iFrame! Or rather just iFrames in general, since you are importing into an existing non-C2 website. Basically, you just have an iFrame element in your blog and link it to your game. Just make sure that your game is running on the same domain, otherwise browser security will undo you.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,365
Reputation: 4,724

Post » Mon Feb 01, 2016 11:43 pm

Thank you
gumshoe 2029
I'll use iframes, this problem is because I can share Youtube movie on my blog and not my html5 games
B
29
S
9
G
3
Posts: 280
Reputation: 4,187

Post » Tue Feb 02, 2016 8:12 pm

Yea, you have to be super careful with the security of iFrames, and browsers will generally block any iFrame request that does not link back to your own domain.

For example, I had to proxy our developer's blog through my domain, because Chrome blocks all non-SAME ORIGIN iFrame requests.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,365
Reputation: 4,724


Return to How do I....?

Who is online

Users browsing this forum: bangoo and 8 guests