Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_churchb_darkclimb_Other_21

(view raw script w/o annotations or w/e)
1
if (controlcon != 0)
2
{
3
    if (controlcon == 1 || controlcon == 102)
4
    {
5
        with (obj_dw_chaseenemy_cloud)
6
        {
7
            miny = y;
8
            minspeed = 0;
9
            maxspeed = 0;
10
        }
11
    }
12
    if (controlcon == 101 || controlcon == 20)
13
    {
14
        with (obj_dw_chaseenemy_cloud)
15
        {
16
            miny = 3040;
17
            y = cameray() + cameraheight() + 200;
18
            if (other.controlcon == 101)
19
            {
20
                minspeed = -0.5;
21
                maxspeed = -1.3;
22
            }
23
            else
24
            {
25
                minspeed = -0.5;
26
                maxspeed = -2.5;
27
            }
28
        }
29
    }
30
    if (controlcon == -2)
31
    {
32
        var pos = scr_genmarker("sugrab1");
33
        instance_create(pos.x, pos.y, obj_climb_climbable);
34
    }
35
    if (controlcon == -20)
36
    {
37
        var pos = scr_genmarker("sugrab2");
38
        instance_create(pos.x, pos.y, obj_climb_climbable);
39
    }
40
    controlcon = 0;
41
}