How Do You Make a Locked Level That Unlocks in Game Maker?

TIME : 2016-01-08
How Do You Make a Locked Level That Unlocks in Game Maker?

You can handle this with an INI file. Open Notepad and set up something like this:

[Levels]
level[1]=0
level[2]=0
level[3]=0

Keep adding entries until you've covered all your levels, then save it as levels.ini. Have the game bundle this file or write it out if it doesn't exist. Whenever a player beats a level, have the game set level[next level] to 1 in the INI file. On the level select screen, check whether a level equals 1; if it does, allow entry, and if not, keep it locked. INI files are also handy for saving progress, storing settings, and more.