Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b3bs_searchzapper_Step_2

(view raw script w/o annotations or w/e)
1
if (state == 0)
2
{
3
    if (i_ex(sarea))
4
    {
5
        var s_x = x;
6
        var s_y = y;
7
        with (sarea)
8
            setxy(s_x + 59, (s_y + 148) - 18);
9
        sarea.image_angle = 90 * (dir + 2);
10
        switch (dir)
11
        {
12
            case 0:
13
            case 1:
14
            case 2:
15
            case 3:
16
        }
17
    }
18
}
19
else if (i_ex(sarea))
20
{
21
    with (sarea)
22
        setxy(room_width, room_height);
23
}