Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_tree_grayscale_Draw_0

(view raw script w/o annotations or w/e)
1
if (con == 0.1)
2
{
3
    timer = irandom(10);
4
    colorindex = irandom(6);
5
    con = 1;
6
}
7
if (con == 1)
8
{
9
    var nextcolor = colorindex + 1;
10
    if (nextcolor > 6)
11
        nextcolor = 0;
12
    timer++;
13
    if ((timer % 3) == 0)
14
        image_blend = merge_color(color[colorindex], color[nextcolor], timer / 10);
15
    if (timer >= 10)
16
    {
17
        timer = 0;
18
        colorindex++;
19
        if (colorindex > 6)
20
            colorindex = 0;
21
    }
22
}
23
draw_self_board();