Put game in iframe

0 favourites
  • 7 posts
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • I'm trying to set my game up on an iframe.

    when I go to the iframe page and open it the game shows up fine but the controls (keyboard) don't work. Any ideas why? the game works fine on the page that it's hosted on.

  • Think I have it working now. I just republished the site as dynamic html rather than html with css.

  • If you exported between r78 and r79.4, keyboard input won't work in an iframe.

  • If you exported between r78 and r79.4, keyboard input won't work in an iframe.

    Is this a bug, or intentional?

    (Sorry my knowledge is a bit sparse on this subject)

  • chrisbrobs: In short yes, r79 introduced a fix to the chrome keyboard bug but caused other types of bugs in the process.

    R79.4 has fixed all introduced bugs, and for the iframe problem, it deactivates the "chrome fix".

    This means now iframes games receive the keyboard controls, but the "sticky key bug" can happen when using chrome.

    The sticky keys bug should be fixed in chrome 18 if all goes well.

  • chrisbrobs: In short yes, r79 introduced a fix to the chrome keyboard bug but caused other types of bugs in the process.

    R79.4 has fixed all introduced bugs, and for the iframe problem, it deactivates the "chrome fix".

    This means now iframes games receive the keyboard controls, but the "sticky key bug" can happen when using chrome.

    The sticky keys bug should be fixed in chrome 18 if all goes well.

    -----------------------------------------------

    Thanks Kyatric.

    So just to be clear, if I have an 'HTML_IFRAME' object in my App that contains a link to a game stored in my Dropbox account using:

    "<iframe width=""480"" height=""320"" src=""http://dl.dropbox.com/u/22173473/biplane3/index.html"" frameborder=""0"" </iframe>"

    1, Will the game be playable in my App ?

    2, If the answer is yes, will it work in preview mode ?

    <img src="smileys/smiley9.gif" border="0" align="middle">

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ok...tried it and it does not work.

    Anybody know how I can get it to work?

    Edit 16.55

    Sorry it DOES work using 'HTML_iFrame_Pode' Plugin.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)