Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_swatchling_platter_Draw_0

(view raw script w/o annotations or w/e)
1
if (y > (gt_maxy() + 40))
2
{
3
    image_alpha -= 0.2;
4
    platterPlate.image_alpha = image_alpha;
5
    platterLid.image_alpha = image_alpha;
6
    if (image_alpha <= 0)
7
    {
8
        instance_destroy();
9
        instance_destroy(platterPlate);
10
        instance_destroy(platterLid);
11
    }
12
}
13
else if (image_alpha < 1)
14
{
15
    image_alpha += 0.2;
16
    platterPlate.image_alpha = image_alpha;
17
    platterLid.image_alpha = image_alpha;
18
}
19
if (colorTimer < 0 || image_alpha < 1)
20
    return targetColor == startColor;
21
if (colorTimer <= 20)
22
    targetColor = merge_color(c_white, startColor, colorTimer / 20);
23
platterPlate.image_blend = targetColor;
24
platterLid.image_blend = targetColor;
25
colorTimer--;