• 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 with switch statements

C

confusedperson

Guest
I went along with a tutorial for unlocking levels which was made in 2013. hopefully not much has changed and I just made a mistake on my behalf however the error reads:

Variable obj_levelsystem.level(100007, -2147483648) not set before reading it.
at gml_Object_obj_levelsystem_Create_0 (line 4) - case 0:

and my coding for the create event is:

image_speed = 0;
switch(level){
case 0:
image_index = 0;
break;

case 1:
image_index = 1;
break;

case 2:{
image_index = 2;
break;

I am very new to game maker and I hope I can continue in the future with your help. thank you in advance.
 
Top