Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_light_area_mask_Draw_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_darkness_overlay) || !require_darkness)
2
{
3
    gpu_set_blendmode(bm_add);
4
    draw_sprite_ext(sprite_index, 0, x, y, image_xscale, image_yscale, image_angle, sprite_blend_mode ? image_blend : lightfx_blend, lightfx_alpha * on_amount);
5
    gpu_set_blendmode(bm_normal);
6
}
7
if (!instance_exists(obj_lightbeamfx) && dustparticles_on)
8
    instance_create_depth(0, 0, 49999, obj_lightbeamfx);