create:
GML
rysuj = true;
xx = 0;
yy = 0;
global mouse left pressed
GML
rysuj = true;
xx = mouse_x;
yy = mouse_y;
global mouse left released
GML
rysuj = false;
draw
GML
if ( rysuj = true )
{
draw_set_alpha( 1 );
draw_set_color( c_green );
draw_rectangle( xx , yy , mouse_x , mouse_y , true );
}