I'm trying to figure out how to create menu with locked / unlocked levels.
I'm using WebStorage to store and autoload "AvailableLevel" global number.
Now, where's the catch.
I'm having 5 sprites (5 levels), and on top of them 4 instances of "locked" sprite.
I've tried destroying them lock levels by UID, but as I do not know exact UID of object it's a problem.
I've tried by setting up instance variable, but I cant set
Instance 1 - have instance variable value = 1
Instance 2 - have instance variable value = 2
I've tried by "System pick Lock instance 0,1,2,3,4 - Lock Destroy" and this is closest to working, but for strange reason at one point it destroys 2 locks not only 1 and I do not understand why..
What's correct approach.
Idea is to have 22 levels, and I need to know exactly which "locked" sprite instance is which one (by number) in order to create groups and paths.
Eg. when 1,2,3 are resolved, you get option to play 4 (not 5 and 6), 7 (not 8 and 9) .... like you will have path that you can follow, and then it splits in two and you can choose where to go, what to play.
I could resolve it by creating 22 times same locked sprite, but I do not find it as "best approach".
Tnx for any suggestion!