Messed up my game? pls help

When my game attempts to load (clicking b when cursor is over play button) it fails MISERABLY. I have no idea why, but some codes run when they shouldn’t and therefore just recieve ‘null’ making the game unplayable! Please help!!! :smiling_face_with_tear:

3 Likes

Try using the Browser Events extension.

this is the code with the extension added.

1 Like

its still broken on my side :cry:

1 Like


If you run the project in debug mode (the little beetle icon under the simulator) you can see that the error happens here. Basically what this means is that this code is trying to do something with this health bar, but the health bar doesn’t exist. This can be fixed by not running that code until the player reaches level 2, where that status bar is created. You could also check if the status bar exists before running the code, like this:

This does not fix the issue because there are a bunch of places that try to use objects before they are created in this project. You’ll have to fix all of those for it to work properly.

2 Likes