Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_gerson_growtangle_telegraph_new_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    if (!longtelegraph)
4
    {
5
        image_alpha += 0.2;
6
        if (image_alpha == 1)
7
            con = 1;
8
    }
9
    else
10
    {
11
        image_alpha += 0.08;
12
        if (image_alpha >= 1.1)
13
            con = 1;
14
    }
15
}
16
else
17
{
18
    if (image_alpha <= -1.3)
19
    {
20
        activetimer++;
21
        if (activetimer == 4)
22
            active = 1;
23
        else
24
            active = 0;
25
    }
26
    if (!longtelegraph)
27
    {
28
        image_alpha -= 0.4;
29
        if (image_alpha <= -3.4)
30
            instance_destroy();
31
    }
32
    if (longtelegraph)
33
    {
34
        image_alpha -= (1/3);
35
        if (image_alpha <= -2)
36
            instance_destroy();
37
    }
38
}