Need Help: Unlocking Levels Issue
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.
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
-
UtopianGames Posts: 5,692
Might be best to have a level unlock for each scene so beating level 1 unlocks level 2 and so on.
Darren.
Answers
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.
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