Super cheap day/night cycle I'm using in one of my latest games. Works best over a background of clouds.
Create:
c1 = make_color_rgb(29,68,73);
c2 = make_color_rgb(89,146,199);
c3 = make_color_rgb(237,189,104);
c4 = make_color_rgb(150,222,219);
c5 = make_color_rgb(70,42,100);
c6 = make_color_rgb(242,95,52);
c7 = make_color_rgb(83,12,0);
c8 = make_color_rgb(14,19,38);
c9 = make_color_rgb(1,2,6);
c0 = make_color_rgb(45,37,78);
col1 = c1;
col2 = c3;
con = 0;
pha = 0;
inc = 0.125/2;
Step:
switch(pha){
case 0:
col1 = merge_color(c1,c2,con/100);
col2 = merge_color(c3,c4,con/100);
break;
case 1:
col1 = merge_color(c2,c5,con/100);
col2 = merge_color(c4,c6,con/100);
break;
case 2:
col1 = merge_color(c5,c7,con/100);
col2 = merge_color(c6,c8,con/100);
break;
case 3:
col1 = merge_color(c7,c9,con/100);
col2 = merge_color(c8,c0,con/100);
break;
case 4:
col1 = merge_color(c9,c1,con/100);
col2 = merge_color(c0,c3,con/100);
break;
}
con += inc;
if(con == 100){
con = 0;
pha += 1;
}
if(pha >= 5){
pha = 0;
}
Draw:
draw_set_blend_mode_ext(bm_src_color,bm_src_color);
draw_set_alpha(0.5);
draw_rectangle_color(0,0room_width,room_height,col1,col1,col2,col2,0);
draw_set_blend_mode(bm_normal);
draw_set_alpha(1);
Free to use; don't care about credit. I would appreciate changing the colours + increment so the effects aren't completely identical but either way I'm not really too bothered. :~)