Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Browser game doesn't work first time you load page.

A topic by Siff created Feb 22, 2021 Views: 572 Replies: 3
Viewing posts 1 to 2

Hi, I’m working on a platformer that is played in browser, I’m using Game maker studios to make it.

I’ve found a problem that I can't seem to solve. The player can’t be controlled when you first load the page, you have to reload the page to get it to work and then if you click off the game while playing you lose control of the player and can't get it back.

To be clear you can still use the mouse to do things in the game, you just can't use any keyboard comans.

This doesn't happen while playtesting the game in game maker; it's only after uploading it to itch.io. 

Does anyone know what's wrong?

Admin(+1)

Have you tried opening the browser console to see if there are any error messages? We don’t do anything different compared to first versus subsequent runs on our end, so any changes would be a result of the code that you’ve uploaded. Hope that helps

I think i've found some stuff but I don't understand it.

DevTools failed to load SourceMap: Could not load content for chrome-extension://alplpnakfeabeiebipdmaenpmbgknjce/include.preload.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

DevTools failed to load SourceMap: Could not load content for https://v6p9d9t4.ssl.hwcdn.net/html/3345383/html5game/inflate.min.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE

getGamepad will now require a Permission Policy. Please update your application accordingly. For more information see https://github.com/w

Unrecognized feature: 'gamepad'.
ca @ lib.js?1613939537:3
3c/gamepad/pull/112

I looked further into it and the warnings seem to have nothing to do with my problem, they appear whether the game works or not.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.