L
Latch
Guest
Hi all, Ive recently come back to GM and I am incredibly rusty. I have my old code for my game which I am in the process of recreating to get me back to scratch, however, I cant seem to figure this part out:
I am trying to have the font change if the option is selected, the code looks like this:
But this changes all the fonts and not just the one that is selected, what am I doing wrong?
I am trying to have the font change if the option is selected, the code looks like this:
Code:
for(var i=0;i<maxselect;i++)
{
if selected = i
{
draw_set_font(font2);
}
//When the text is not selected
else {draw_set_font(font1);}
}
if room = rm_main
{
draw_text (192,416,"Start Game")
draw_text (192,416+64,"Options")
draw_text (192,416+128,"Exit Game")
}
}