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

trying to create dark area by drawing rectangle.SOLVED

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
 
M

mr_starfire

Guest
Thank you for showing how stupid i was and sorting my problem its working fine now :)
 
Top