Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_controller_dw_mansion_east_1f_a_Step_0

(view raw script w/o annotations or w/e)
1
if (i_ex(enemy1))
2
{
3
    with (enemy1)
4
        image_speed = 0.25;
5
}
6
if (i_ex(enemy2))
7
{
8
    with (enemy2)
9
        image_speed = 0.25;
10
}
11
if (i_ex(enemy2))
12
{
13
    with (enemy3)
14
        image_speed = 0.25;
15
}
16
if (i_ex(enemy2))
17
{
18
    with (enemy2)
19
    {
20
        if (direction == 0 || direction == 270)
21
            facing = 1;
22
        if (direction == 180 || direction == 90)
23
            facing = 0;
24
    }
25
}
26
if (triggered == 1)
27
{
28
    if (obj_controller_dw_mansion_east_1f_a.topleftspawned == 0)
29
    {
30
        obj_controller_dw_mansion_east_1f_a.topleftspawned = 1;
31
        obj_controller_dw_mansion_east_1f_a.enemy1 = instance_create(-140, 136, obj_chaseenemy);
32
        with (obj_controller_dw_mansion_east_1f_a.enemy1)
33
        {
34
            myencounter = 64;
35
            sprite_index = spr_npc_swatchling_sweep;
36
            touchsprite = spr_swatchling_hurt;
37
            radius = 10000;
38
            ignoresolid = 1;
39
            alertcon = 0;
40
            eraser = 1;
41
        }
42
        obj_controller_dw_mansion_east_1f_a.enemy3 = instance_create(1441, 550, obj_chaseenemy);
43
        with (obj_controller_dw_mansion_east_1f_a.enemy3)
44
        {
45
            myencounter = 64;
46
            sprite_index = spr_npc_swatchling_sweep;
47
            touchsprite = spr_swatchling_hurt;
48
            radius = 10000;
49
            ignoresolid = 0;
50
            alertcon = 0;
51
            eraser = 1;
52
        }
53
        with (obj_controller_dw_mansion_east_1f_a.enemy2)
54
        {
55
            path_end();
56
            myencounter = 64;
57
            sprite_index = spr_npc_swatchling_sweep;
58
            touchsprite = spr_swatchling_hurt;
59
            radius = 10000;
60
            ignoresolid = 0;
61
            alertcon = 0;
62
        }
63
    }
64
}
65
if (instance_exists(obj_battleback))
66
{
67
    topleftspawned = 1;
68
    botRightspawned = 1;
69
    if (susiebreak == 0)
70
    {
71
        susiebreak = instance_create(x, y, obj_caterpillarchara_susiebreakspots);
72
        susiebreak.susiestart = 1;
73
    }
74
}
75
if (i_ex(enemy1))
76
{
77
    with (enemy1)
78
    {
79
        if (x < 220)
80
            ignoresolid = 1;
81
        else
82
            ignoresolid = 0;
83
    }
84
}
85
if (i_ex(enemy3))
86
{
87
    with (enemy3)
88
    {
89
        if (x > 1240)
90
            ignoresolid = 1;
91
        else
92
            ignoresolid = 0;
93
    }
94
}