Dan1
Member
Hey guys,
I've only just got the HTML5 export and still getting to grips with it, I've noticed that when I put my game up on my website and link to it without using an iframe, the keyboard controls work - however when I try to embed it in to a page on my website using an iframe, even when I do a "click to focus" part at the start to keep the frame in focus, it's not responding?
This is the link to my game without the iframe: Without iFrame
And this is how I'm trying to embed it:
I saw on reddit that people were having this issue:
https://www.reddit.com/r/gamemaker/comments/kfs5cs
And I did try to fix it with their suggestion but still it's not working? I know some people were saying it's an issue but I'm not sure if there's a workaround for this yet or if what I'm experiencing is the same thing?
Like I said, new to the HTML5 export so sorry if this is old news!
Thanks
EDIT: Turns out the solution IS on the reddit page, and also here: https://github.com/Kodiqi/WindowFocus
I was loading a cached page though so it appeared to not work! Reload the cache! Lesson learned!
I've only just got the HTML5 export and still getting to grips with it, I've noticed that when I put my game up on my website and link to it without using an iframe, the keyboard controls work - however when I try to embed it in to a page on my website using an iframe, even when I do a "click to focus" part at the start to keep the frame in focus, it's not responding?
This is the link to my game without the iframe: Without iFrame
And this is how I'm trying to embed it:
Code:
<DIV>
<p align="center">
<iframe style="border:3px solid black;"
onclick="window.focus()" src="https://tydecon.games/assets/GAMES/CookiesCataracts/CookiesCataracts11/ccindex.html"
width="960" height="540"
frameborder="10" scrolling="no" name="GameFrame" >Oh No, something's gone wrong, try a different browser</iframe>
</DIV>
Like I said, new to the HTML5 export so sorry if this is old news!
Thanks
EDIT: Turns out the solution IS on the reddit page, and also here: https://github.com/Kodiqi/WindowFocus
I was loading a cached page though so it appeared to not work! Reload the cache! Lesson learned!
Last edited: