About selecting levels thing

dondan89dondan89 Member Posts: 150
edited October 2012 in Working with GS (Mac)
Hello,


I have unlock and lock levels thing for choosing the levels you want to play and everything is working properly except for a few things.

The problem I have is that when I am playing a level and then quit that level by touching pause and quit the game it automatically unlocks the other level without finishing the current one or when I press the home button and then come back to the game sometimes level/s get unlocked.

What should I do?




Thank you

Comments

  • guillefaceguilleface Member Posts: 1,014
    how is your level set up, like how do you know the level is completed?
  • dondan89dondan89 Member Posts: 150
    There are 3 sections and each have 20 levels with boxes and i can see them open and touch the box and is open
  • guillefaceguilleface Member Posts: 1,014
    yeah but like when you play the level, what you do so is over/completed. say i have a level and i need to collect 3 stars to win, then in one actor i put a rule, when stars=3 change level completed to true and you can add another change attribute to unlock next level, this way when you click on quit or go to menu you will not unlock anything.
  • dondan89dondan89 Member Posts: 150
    Yes on each level collect and after that the main actor needs to go to the main goal
  • guillefaceguilleface Member Posts: 1,014
    yeah so like when ever you finish your game i assume you have a "next level" button, on this actor add a rule, when touch is pressed and when level is completed, change "level1 unlocked" to true and change next scene, this should unlock this level only if you finished.
  • dondan89dondan89 Member Posts: 150
    Hello,


    Thank you so much is fix now
Sign In or Register to comment.