level unlock unlocking to many levels

chicopchicop Member Posts: 263
edited November -1 in Working with GS (Mac)
Howdy

I have a change attribute game.levelsUnlock to game.levelsUnlock+1 at the end of a level 1
this opens level 2...

however if i replay level 1 it will unlock level 3 and if i replay again level 4 etc

how can i tell it to just unlock level 2 and not any other levels no matter how often its replayed?

cheers

Comments

  • RHRH Member Posts: 1,079
    when currentlevel = levelsunlocked
    and when levelcomplete

    change attribute levelsunlocked to levelsunlocked+1
  • chicopchicop Member Posts: 263
    thanks,

    but the next level unlocks when the current level is completed, however you can go back to improve your score if you like... so that sets levelcomplete to true as its already cleared and unlocked a level+1.. i think here is where it looks at whats the next level to unlock even if its a few levels down the road..?

    so i need to either find a way to unlock a level by name or something else more specific
  • chicopchicop Member Posts: 263
    cheers!

    pointed me in the right direction
Sign In or Register to comment.