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

Legacy GM [SOLVED] Random Background Blend

W

Wuzzems

Guest
Code:
backgroundcolor[0] = background_blend[0] = c_white;
backgroundcolor[1] = background_blend[0] = c_red;
backgroundcolor[2] = background_blend[0] = c_orange;
backgroundcolor[3] = background_blend[0] = c_yellow;
backgroundcolor[4] = background_blend[0] = c_green;
backgroundcolor[5] = background_blend[0] = c_blue;
backgroundcolor[6] = background_blend[0] = $4B0082;
backgroundcolor[7] = background_blend[0] = $7F00FF;


color = irandom(7);

background_blend[0] = backgroundcolor[color];
I have this code within my room creation code and I feel like whatever is wrong is staring me in the face. The game starts up but each time it just gives me a black background.
 
W

Wuzzems

Guest
Thank you. It works. Although I would like to know why my method didn't work. Is it just because Background_blend doesn't accept that kind of answer?
 
Top