answersLogoWhite

0

Ini files.

Open up notepad, and do this:

[Levels]

level[1]=0

level[2]=0

level[3]=0

Keep adding to the level[number] number until you make it to how many levels you have. Save the file as levels.ini. That will be bundled with your game, or you will have the game write that out if it doesn't exist. Whenever you beat a level, have the game write to the ini file that level[the next level] is now 1.

In the level select screen, have it check if the level=1. If it doesn't, have it not allow you to enter that level. If it does = 1, allow you to enter.

Ini files can also be used for more efficient saving/loading, creating settings, and more.

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan

Add your answer:

Earn +20 pts
Q: How do you make a locked level that can unlock in Game Maker?
Write your answer...
Submit
Still have questions?
magnify glass
imp