• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

help

N

nessabby1

Guest
Help, i managed to get the levels unlocked but now 1-5 levels are just appearing open and did not lock. I even used the same code for the others that did lock. I dont understand?
heres the code:
in CREATE event:
image_speed = 0;
{
ini_open("lvfile.ini");
o = ini_read_real("Game_buttons","lvl_6",0);
if (o > 0)
{
image_index = 6;
} else{
image_index = 21;
}
ini_close();
}

and LEFT RELEASED:
{
ini_open("lvfile.ini");
o = ini_read_real("Game_buttons","lvl_6",0);
if (o > 0)
{
global.manual_rm = 6;
room_goto(rm_manual);
} else{
//do nothing
}
ini_close();
}


Now in the levels 1-5 i have the same exact code but just changed the level to match its level and still 1-5 appear open. I want all the levels to be unlocked until player passes the level. Not open
 
Top