Unlock partition

I want to make a game that includes 5 episodes. but when the first part is over, the second part should be opened, then three four five. There is a similar in the trainers, but not exactly as I want. sorry for bad english.

Use a global variable to store the state (unlocked/locked) of the levels and display it in menus. Then just change th variable’s value when finish a level.

1 Like

As @arthuro555 says use Global Variables,
like
g_current_chapter = 1 or 2,3,4,5,n
g_chapter_locked = 0 or 1
g_max_chapter_reached = 1 or 2,3,4,n
Amd Store the value in Storage then when you load the scene get back the Storage value and set to the global variable

1 Like

I’m a little inexperienced in the program, I think I couldn’t understand. Are there any videos or pictures?

Here is the Level Selection Unlock example: GDevelop 5

1 Like

1 Like

Thank you very much for your help in this much detail. I love this forum because it is so active. I hope I can help everyone who learns well.