Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_climb_animationmarker_Other_20

(view raw script w/o annotations or w/e)
1
if (con == 1)
2
    exit;
3
if (index < 0)
4
{
5
    with (obj_climb_destructableclimbarea)
6
    {
7
        if (animation_idx == -other.index)
8
        {
9
            con = 2;
10
            safe_delete(climbarea);
11
            if (animation_idx > 0)
12
            {
13
                with (obj_rotating_tower_animation)
14
                {
15
                    if (index == other.animation_idx)
16
                    {
17
                        targetx = other.x + 20;
18
                        targety = other.y - 20;
19
                        con = 2;
20
                        break;
21
                    }
22
                }
23
                instance_destroy();
24
            }
25
        }
26
    }
27
    con = 1;
28
    exit;
29
}
30
with (obj_rotating_tower_animation)
31
{
32
    if (index == other.index)
33
    {
34
        targetx = other.x;
35
        targety = other.y;
36
        con = 2;
37
        break;
38
    }
39
}
40
con = 1;