Can you make levels unlock?

Sambo110Sambo110 Member Posts: 7
edited November -1 in Working with GS (Mac)
Can you have it so a level unlocks after you do the one previous? Sorry, I am a complete noob but have an idea for a game. Also, how do you do accelerometer controls?

Comments

  • nulonulo Member Posts: 315
    an idea would be creating a variable for each level: "level_1_locked", "level_2_locked" etc.
    make it a booleon and make it true for all the levels except the first one.
    then for example make a list of your levels, and only make it clickable if that levels variable "level_X_locked" is false.
    now how do they turn false (unlocked)?
    at the end of each level, make the next levels variable false.
    this way the list will have all the levels you already played and have the future levels locked.
    hope the idea helps
Sign In or Register to comment.