M
mr_starfire
Guest
Hi guys so as the title suggest im trying to draw a rectangle with alpha to make a darker section of my platformer
my code goes as such i have a object called obj_shade_con
(CREATE EVENT)
x1 = 1696
y1 = 736
x2 = 2784
y2 = 736
(DRAW EVENT)
draw_set_colour(c_black);
draw_set_alpha(0.8);
draw_rectangle(x1,y1,x2,y2,0);
draw_set_alpha(1);
I'm sure you guys can see an obvious problem but it's eluding me . by the way the above code seems to do nothing at all
my code goes as such i have a object called obj_shade_con
(CREATE EVENT)
x1 = 1696
y1 = 736
x2 = 2784
y2 = 736
(DRAW EVENT)
draw_set_colour(c_black);
draw_set_alpha(0.8);
draw_rectangle(x1,y1,x2,y2,0);
draw_set_alpha(1);
I'm sure you guys can see an obvious problem but it's eluding me . by the way the above code seems to do nothing at all