Need Help: Unlocking Levels Issue

GAMEINTERNGAMEINTERN PRO Posts: 56
edited July 2012 in Working with GS (Mac)
Hi all!

I have followed the tutorial of unlocking levels that T-Shirtbooth created however I am having a issue like this:
Note: This was a question asked on his You tube video thread but I did not see an answer to it.
----
rkchan777 4 months ago

I thought of a problem that my users might encounter. Once you beat level 1, it changes unlock attribute to "unlock+1." Level 2 is unlocked and clickable. What happens if you play level 1 more than once and mess up the unlock attribute? Let's say you beat level 1 and change the unlocked attribute to "2". Instead of playing level 2, you decide to beat level 1 again. Beating level 1 again will change unlocked attribute from 2 to "3." This will unlock level 3 when level 2 wasn't played. Solutions?
----
Any help on this would be great.

Best Answer

  • UtopianGamesUtopianGames Posts: 5,692
    Accepted Answer
    Might be best to have a level unlock for each scene so beating level 1 unlocks level 2 and so on.

    Darren.

Answers

  • slinky1988slinky1988 Member, PRO Posts: 89
    You would at an extra rule to the existing rule.
    The rule would be 'if game.levelunlock is = game.level'

    That way it will only unlock the next level if the last level is played.
  • GAMEINTERNGAMEINTERN PRO Posts: 56
    THANKS! for the response. I followed UtopianG. way and it seems to be working fine.
    The other way NAS M said will prob. work also. :)

    Thanks so much!!! I have over 50 scenes so this will take some time but its all worth it!

    Cheers
Sign In or Register to comment.