I’m trying to figure out how get my game to go to a new level once you reach a certain score.
There are keys, when the duck overlaps the keys the score goes up by 1, and I want it to go to level two when the duck has five points.
I have an if statement that calls a function to create level two if the score reaches 5, but when I gather five keys the level doesn’t change.
Any suggestions?