Locking Levels

Hi GameSalad,
I was wondering how I could make it so that you have to beat the previous level to be able to play the next level.
Thanks!
I was wondering how I could make it so that you have to beat the previous level to be able to play the next level.
Thanks!
Comments
Here's a way to do it with one attribute. Have a attribute called unlockedLevels, have it set to zero. When u beat a level change attribute levels unlocked to levels+1
Then on your level select screen for the 2nd level button have a rule when touch is pressed and attribute unlockedLevels is greater or equal to 1 change scene to level 2 . Then in the level 3 select button have a rule when touch is pressed and unlockedLevels is greater then or equal to 2 change scene to level 3. Then you just do that for all your level select buttons.
Cheers
How can we say it to game