A
Amith Haripersad
Guest
Hey Guys
I managed to download a very old yet simple tutorial of making a level lock/unlock system.
The problem is, how do i add a save system to it?
A game will start will level 01 unlocked. Once this level is completed, level 02 gets unlocked. How do i save this progress so that when the player restarts the game, it does not lock all levels that the player completed already?
If anyone could please have a look at the example and modify or assist with a solution, i would be really greatful
This is the code...
I managed to download a very old yet simple tutorial of making a level lock/unlock system.
The problem is, how do i add a save system to it?
A game will start will level 01 unlocked. Once this level is completed, level 02 gets unlocked. How do i save this progress so that when the player restarts the game, it does not lock all levels that the player completed already?
If anyone could please have a look at the example and modify or assist with a solution, i would be really greatful
This is the code...
Code:
CREATE EVENT
if (score>50)
{
sprite_index=sprite_level_02;
image_index=1;
image_speed=0;
}
else
sprite_index=sprite_level_02;
image_index=0;
image_speed=0;
{
}
MOUSE LEFT PRESSED EVENT
if (score>50)
{
transition_kind=0;
room_goto(level_02);
}
else
{
show_message("get 50 points to unlock this level");
}