Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_light_parent_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    if (sprite_index == spr_lightsource)
4
        sprite_index = spr_light320;
5
    if (width == -1)
6
        image_xscale = size / 320;
7
    else
8
        image_xscale = width / 320;
9
    if (height == -1)
10
        image_yscale = size / 320;
11
    else
12
        image_yscale = height / 320;
13
    init = 1;
14
}