Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_swatchling_platter_old_Draw_0

(view raw script w/o annotations or w/e)
1
if (colorTimer < 0)
2
    return targetColor == startColor;
3
if (colorTimer <= 20)
4
    targetColor = merge_color(c_white, startColor, colorTimer / 20);
5
platterPlate.image_blend = targetColor;
6
platterLid.image_blend = targetColor;
7
colorTimer--;
8
if (image_alpha < 1)
9
{
10
    image_alpha += 0.2;
11
    platterPlate.image_alpha = image_alpha;
12
    platterLid.image_alpha = image_alpha;
13
}