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?
2 Likes
use a variable, increase it when the score gets higher and make it so that if the variable equals 5 then the level changes
3 Likes
Fixed it! i added a Variable called “Score.” i put the change (Variable) score to plus one when key hit, and when B pressed it asks it (Variable) score is at 5, if it is it switches to next level.
2 Likes
Thanks. I’ll try to recreate what you did!
2 Likes