Link to the project or level: Game Lab - Code.org
What I expect to happen: Line 52: The background should go black and “what comes up (click the up button)” text should appear. When the player clicks the up button and the charater changes to jump up, then text should pop up again saying “must come down(click the space button)”. Then character (dio2) should glow, then text string “Congrats on your discovery for finding power up dio now all you have to do is find the blank food to feed his power to one hundred to REALLY win something”. Then the background and character goes back to the initial settings, with a text string saying “Congrants you win for good now PLAY TO YOUR HEARTS CONTENT”
What actually happens: You play through out and get to the finale (score = 40). It stops the game and reads an error message saying “maximum call stack exceeded”
What I’ve tried: My student tried replacing some IF statements into smaller ones She replaced some IF statements with IF/ELSE statements, which worked for that line of code, but the same error message appears on a different line of code.
your having a funciton recursion issue many beginners should not use function recursion it will exceed the call limit and crash the program instead setup stage indicatiors that will wait in the draw loop and execute correctly like this