I worked for more than two months on a mobile game and I had completely forgotten the save option. And it's been several days I'm trying to solve my problem. I would like at the end of each level, the next level is unlocked. I do not know at all how to do it (WebStorage? Array? Dictionnary?). I already watch this tutorial: /watch?v=JJWWw9UMIs0 , but all my levels are a different image and it's doesn't work.

So how to make the end of each level I unlock the next one. I just want to unlock the next level, and save the progression on the phone. (There is no scoring system) (PS: it's a mobile game.)

You can use an array to save your level info (for example 5*1*1 array for 5 levels you can save at each cell of the array a number you see proper(to me, 0 for locked, 1 for unlocked,2 for completed) then you need to save that array to webstorage by saving it as json file. don't worry, I think its easy and I'm nearly 17 years old. for more on how to that check this question I answered before : where-is-my-failure-webstorage-array_t113464or ask for further help.

I began with the method of fldr and I have some problems. (I certainly forgot a part).

Here is what I've done :

My Level Select Event Sheet: To launch every level, I have a specific button, the manipulation is then different. Here is how I made (for the event 32, i made an error, it's Play2 -> set locked to false) :

1.PNG

I used for each "playbutton" sprite two instance variables. The boolean variable "unlocked" and the number variable "cur_lvl". (I put "false" for the first playbutton because the level is unlocked at the beginning). I add too on my first level two global variable (cur_level = 0 and cur_unlocked = 0 )

On the splash screen, I made as you :

2.PNG

And on the level, I made this :

3.PNG

When my guy is overlapping the finish flag, go to layout "missions" (level select), and put the boolean variable of playbutton2 (level 2) to false.

Where is the problem because it doesn't work. Thanks for your help

You do not have the required permissions to view the files attached to this post.

Ok, i slept enough now to tackle this what seems to be the problem? from what i see event 173 should be a subevent of 174 and the stuff that happens in 174 should go in subevent 175 under 173 (if you want to unlock the next level when the player finishes currentlevel and current level is the last unlocked level)i think i could help you better if you gave me access to the capx, if you dont want me or someone to see the rest of the game, just exclude that parts and put them back in when the problem is solved