A very basic project that demonstrates how to change levels. (A remix of an earlier project I shared, which I changed based on feedback from others. Thank you for the bug reports and suggestions!)
The score increases by 1 every time the space bar is pressed. The level increases by 1 for every 10 points.
In response to a ScratchEd question:
I've got 19 kids working on game projects right now and this is a common quirk:
Many of them have a "score" variable and want to increment the score until it gets to a certain number, like 10, and then have the game advance to the next level.
But many of them are finding that the "score" variable increments to 12 or 13 before the script stops executing and/or sends a broadcast to trigger the next level. Why is that? Is there a fix?