Hi, im making a main menu for my game and my entire thing has an error. I dont know how to fix it, and i already tried to pause everything until level = 1 but i dont think it is solving the main issue.
GameLink: https://arcade.makecode.com/S47955-72354-17877-44590
1 Like
One of your issues is the way you’re using the “pause until” block!
Here's an example
And here's how it should be
Another problem is a lot of your event handlers are missing the same condition. This means that when you try to press A to start the game, it will try to look for the sword to attack / do an animation which crashes the game. 
Here's the code that crashes

And here's the fixed one

Keep in mind, I added this IF statement to multiple blocks! You can see the difference in this fixed version of your game!
Hope this helps, and happy coding! 
Thanks! I have one question should I continue to use this method to make menus or would switching to the mini menu extension be better in the long run. (I plan to add inventory and stuff)
1 Like
While it’s always better to tinker, mess around with code and do your own stuff, that’s just useful for learning and slowly building better habits and more code understanding. 
Once you have a good grasp of how things work, extensions like the “mini menu” one are very useful for saving time and not having to worry about polishing / bugs! 
1 Like