Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_ob_checkertile_Step_0

(view raw script w/o annotations or w/e)
1
if (global.interact == 0)
2
    timer += 1;
3
if (timer >= 0 && timer <= 10)
4
    image_alpha = timer / 10;
5
if (timer == 10)
6
    active = 1;
7
if (timer >= 20)
8
{
9
    image_alpha = 3 - (timer / 10);
10
    active = 0;
11
    if (image_alpha <= 0)
12
    {
13
        if (room == room_field_checkers1)
14
            x -= 80;
15
        if (room == room_field_checkers4)
16
        {
17
            x -= 40;
18
            y += 40;
19
            if (y >= 350)
20
            {
21
                y = 240;
22
                x += 120;
23
            }
24
        }
25
        if (room == room_field_checkers6)
26
        {
27
            x -= 40;
28
            y += 40;
29
            if (y >= 310)
30
            {
31
                y = 240;
32
                x += 80;
33
            }
34
        }
35
        timer = -10;
36
        if (room == room_field_checkers6)
37
            timer = -6;
38
        if (room == room_field_checkers4)
39
            timer = -4;
40
        image_alpha = 0;
41
    }
42
}
43
if (x < 500)
44
    instance_destroy();