Locking Levels

Harryh1515Harryh1515 Member Posts: 17
edited November -1 in Working with GS (Mac)
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!

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Hey there,
    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
  • Harryh1515Harryh1515 Member Posts: 17
    Thanks!
  • svcgamessvcgames Member Posts: 7
    How we can say ( When you beat a level)

    How can we say it to game
  • scovilleiscovillei Member Posts: 7
    Tshirtbooth has a great tutorial:

Sign In or Register to comment.