Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_cast_shadow_Draw_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    init = 1;
4
    if (yoffset < 0)
5
        yoffset = sprite_get_height(source.sprite_index) - 1;
6
}
7
image_blend = c_black;
8
sprite_index = source.sprite_index;
9
image_index = source.image_index;
10
image_xscale = source.image_xscale;
11
image_yscale = -source.image_yscale * stretch;
12
x = source.x;
13
y = source.y + (yoffset * -image_yscale * (1 + stretch));
14
draw_self();