Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_city_noelle_chase_Step_0

(view raw script w/o annotations or w/e)
1
if (room == room_dw_city_traffic_1)
2
{
3
    if ((noellemarker.x - camerax()) < 640 && leavecon == 0)
4
    {
5
        leavecon = 1;
6
        noellemarker.image_speed = 0.25;
7
    }
8
    if (leavecon == 1)
9
    {
10
        if (i_ex(noellemarker))
11
        {
12
            noellemarker.x += 6;
13
            if (noellemarker.x >= room_width)
14
            {
15
                leavecon = 2;
16
                global.plot = 68;
17
                instance_destroy(noellemarker);
18
                instance_destroy();
19
            }
20
        }
21
    }
22
}
23
if (room == room_dw_city_roadblock)
24
{
25
    if (leavecon == 0 && (noellemarker.y - cameray()) < 480)
26
    {
27
        leavecon = 1;
28
        noellemarker.image_speed = 0.25;
29
    }
30
    if (leavecon == 1)
31
    {
32
        if (i_ex(noellemarker))
33
        {
34
            noellemarker.x += 6;
35
            if (noellemarker.x >= 1330)
36
            {
37
                leavecon = 2;
38
                global.plot = 69;
39
                instance_destroy(noellemarker);
40
                instance_destroy();
41
            }
42
        }
43
    }
44
}