So this game allows you to choose how many people can play, at the start it asks you 1, 2, and 3, every time I go to shoot an egg out in single player it will crash on a random shot. I remove the last answer equals 2 and 3 and the crash doesn’t happen but then a core thing for how the egg shooting works is removed. I have the link for the game if you’d like to take a look
Looks like there might be an error in the story extension! It seems that when you select an option, the menu is still running in the background, so when you press up or down and then click A, the most recent button is no longer option 1, and the game errors because the “player2” sprite doesn’t exist!
What you can do to fix this is make a new variable set to the selected option right after the player selects it. That way, your variable won’t change even if the last selected option variable does change. Then just use that variable instead of the built in one.
Oh and I guess @makecode can y’all look into the story extension? It probably isn’t removing the event handlers properly when the menu closes.
I think its because “Sprite2” hasn’t been given a sprite definition by the time the simulator runs that piece of code.
Try clicking on that warning sign on the malfunctioning block.
Also i like this game
That works!
Glad to hear, it’s just a little side project to keep me busy and I like how it’s gone so I wanted to work on it a bit more.