Legacy GM [SOLVED] Random Background Blend

Wuzzems

Member
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.
 

Wuzzems

Member
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