You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2Rogue/Export_Code/gml_Object_oFlashLight_Draw...

13 lines
654 B

draw_set_alpha(1)
draw_set_blend_mode(bm_subtract)
draw_sprite_ext(sprite_index, -1, x, y, 1, 1, 0, -1, 1)
draw_sprite_ext(sprite_index, -1, x, y, -1, 1, 0, -1, 1)
draw_sprite_ext(sprite_index, -1, x, y, 1, -1, 0, -1, 1)
draw_sprite_ext(sprite_index, -1, x, y, -1, -1, 0, -1, 1)
draw_set_blend_mode(bm_normal)
draw_set_color(c_black)
draw_rectangle(view_xview[0], view_yview[0], (x - 64), (view_yview[0] + 240), false)
draw_rectangle((x - 64), view_yview[0], (x + 64), (y - 64), false)
draw_rectangle((x - 64), (y + 64), (x + 64), (view_yview[0] + 240), false)
draw_rectangle((x + 64), view_yview[0], (view_xview[0] + 320), (view_yview[0] + 240), false)