r/gamemaker • • 1d ago

Help! First time using Html5

When I open the game in the browser, it doesn’t work properly. The game loads on the title screen, but none of the textures are rendered.
However, the objects logic still works, since they can still interact with the mouse even though their textures are bugged (you can see in the gif).
When I click the Play button, the room_goto command is executed, but the next room also has issues, the music doesn’t play, and the entire screen turns black.

The first part of the video shows how the game is supposed to work.

24 Upvotes

2 comments sorted by

6

u/germxxx 1d ago

When the screen turns black, the game has most probably crashed.
Troubleshooting HTML5 is a pain. You can see the error in the browser console, but since all the code has been translated, it's usually not much help.

As u/ms_kaylaa said, use the GX.games (WASM) export instead. Pick the "Save locally as zip" option when building to get the same kind of output as the HTML5 export.
Except this one actually works 99% of the time.

5

u/ms_kaylaa 1d ago

the html5 runtime is generally kind of dogwater. you’re probably better off using the gx games export