Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_elnina_umbrella_Step_0

(view raw script w/o annotations or w/e)
1
if (i_ex(obj_heart) || i_ex(obj_moveheart))
2
{
3
    var xx, yy;
4
    if (i_ex(obj_heart))
5
    {
6
        depth = obj_heart.depth + 2;
7
        xx = obj_heart.x + 10;
8
        yy = obj_heart.y + 4;
9
    }
10
    if (i_ex(obj_moveheart))
11
    {
12
        depth = obj_moveheart.depth + 2;
13
        xx = obj_moveheart.x + 10;
14
        yy = obj_moveheart.y + 4;
15
    }
16
    var idealangle = 0;
17
    var idealimagealpha = 0.7;
18
    if (right_h())
19
    {
20
        idealangle = -20;
21
        xx += 8;
22
    }
23
    if (left_h())
24
    {
25
        idealangle = 20;
26
        xx -= 8;
27
    }
28
    image_angle = lerp(image_angle, idealangle, 0.25);
29
    x = lerp(x, xx, 0.6);
30
    y = lerp(y, yy, 0.6);
31
    if (image_alpha < 0.7)
32
        image_alpha += 0.1;
33
    if (i_ex(obj_dmgwriter_boogie))
34
    {
35
        with (obj_dmgwriter_boogie)
36
        {
37
            damage = ceil(other.mercy);
38
            init = 0;
39
        }
40
        with (obj_dmgwriter_boogie)
41
        {
42
            killtimer = 0;
43
            killactive = 0;
44
            kill = 0;
45
        }
46
    }
47
}
48
else
49
{
50
    image_alpha = -0.4;
51
}