• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

HTML5 How to make the game focused in the window.

klawsin

Member
I made a quick game for the GM48 game jam and made a HTML5 version for it. I use a simple "press any key to start" system, and nothing works, I have figured out that this is because the game is simply not in focus within the window (at least that is the only thing that makes sense to me.) If you refresh the page, and click on the black screen that says "loading" before the game launches, then you can play fine, but if you ever click outside of that, you will never be able to return to the game and press buttons.

You can see the issue here
on the GM48 game page.

I have even tried making a room before with a play button so the user is forced to click on an object that the game interacts with, and they will go to the next room, but they still can't press any keys.
Is this a new bug? I have done HTML5 games for game jams or to put on newgrounds before and have never had this issue.
 
Top