draw_set_color(c_black) draw_rectangle(140, 180, (140 + 20 * door_closed_amount), 240, false) draw_rectangle(180, 180, (180 - 20 * door_closed_amount), 240, false)