Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_oflash_Draw_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(target))
2
{
3
    image_index = target.image_index;
4
    sprite_index = target.sprite_index;
5
}
6
siner += flashspeed;
7
d3d_set_fog(true, flashcolor, 0, 1);
8
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, image_blend, sin(siner / 3));
9
d3d_set_fog(false, c_black, 0, 0);
10
if (siner > 4 && sin(siner / 3) < 0)
11
    instance_destroy();