When porting a friday night funkin mod to html5, the game opens but freezes after loading. I get this error in the console:
Kade Engine.js:127221 Uncaught TypeError: Cannot read properties of null (reading ‘set_x’)
at TitleState.update (Kade Engine.js:28382)
at TitleState.tryUpdate (Kade Engine.js:9047)
at flixel_FlxGame.update (Kade Engine.js:35074)
at flixel_FlxGame.step (Kade Engine.js:35049)
at flixel_FlxGame.onEnterFrame (Kade Engine.js:34983)
at openfl_display_Stage.__dispatchEvent (Kade Engine.js:4938)
at openfl_display_Stage.dispatch (Kade Engine.js:5751)
at openfl_display_Stage.broadcastEvent (Kade Engine.js:127040)
at openfl_display_Stage.onLimeRender (Kade Engine.js:128067)
at lime_app$Event$lime$graphics$RenderContext$Void.dispatch (Kade Engine.js:104375)
Any ideas how i could fix this? Here is the source code for the mod: https://github.com/Clowfoe/ImpostorWeek2