• 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!

Windows Help me

X

xtrapnation

Guest
its me again, hope you guys can help me again :D . I already made everything, but this thing makes it so that i cant even test and open the game becouse its a "FATAL ERROR".
/// @desc Draw black bars
if (mode != TRANS_MODE_OFF) <---- is supposed to be a enum but it becomes a variable
{
draw_set_color(c_black);
draw_rectangle(0,0,w,percent*h_half,false);
draw_rectangle(0,h,w,h-(percent*h_half),false);
}

draw_set_color(c_white);
draw_text(50,50,string(percent));
 

TheouAegis

Member
When you make an enum, you do so like
Code:
enum pets {
dog,
cat,
bird,
fish
}
When you want to refer to an enum, you have to prefix it with the group's name.
Code:
my_pet = pets.dog;
 
Top