Hey everyone,
This is my first time uploading a game on itch, and I'm running into kind of a weird bug and looking for some insight! So, for some background, I created my game in Gamemaker Studio 2 and exported it as HTML5 as a zip file. Inside the zip file is just the classic index.html file, options.ini, favicon.ico, and a folder called html5game with all my assets (textures, sprites, sounds, etc.). I think this is what you normally get when you export as HTML, so everything should be good there.
When I run the game on itch, the start screen loads just fine and functionally works. When I press [Z] to advance from the start room to the game room, that's where I start running into issues. Here's some screenshots below:
-
In the black screen/headphones picture above, the player is now in the game room ("rm_game" in GMS2), but I've placed what I've been calling an "Interstitial" screen as the top layer in the GUI to see if you're a new player or returning player. This specific Interstitial screen gets shown for returning players, since there's a "Saved file found" in the option on the right. But this specific screen isn't supposed to show up unless a save file exists - which is weird because if this is the first time I'm running this game, there shouldn't be an existing save file. When I try the option on the right, it just loads into a black screen. When I start a new game with the left option, it goes back to the start room (which should happen) but when I advance with [Z] I just get this same exact screen, and am back at square one. Also, the game is extremely laggy at this point.
I'm thinking it might be a problem with the way i'm save/loading. I followed shaun spaulding's save/load method here (Save / Load tutorial) which I think is pretty standard, and called my save file "dive.save" and saved it in a global variable called save_file.
Here's the error I'm getting in the console when it hits the interstitial screen. There's a huge number of requests being made, and it seems like my browser is hitting up itch's CDN (where my game files are hosted) multiple times without success. I think a 403 is a permissions denied error.
In any case, sorry for the super long post, and any help is greatly appreciated!
Thanks so much,
bitsloth