Undertale script viewer

← back to main script listing

gml_Object_obj_mettnews_artifact_Step_1

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
(0, 0, 0, 0, 0);
2
if (con == 2)
3
{
4
    if (collision_line(x + (sprite_width / 2), (y + sprite_height) - 5, x + (sprite_width / 2), y + sprite_height + 20, obj_mainchara, false, true))
5
        con = 3;
6
    else
7
        con = 20;
8
}
9
if (con == 3)
10
{
11
    if (obj_mainchara.x < x)
12
    {
13
        hspeed = 2;
14
        alarm[4] = 9;
15
        con = 4;
16
    }
17
    else
18
    {
19
        hspeed = -2;
20
        alarm[4] = 9;
21
        con = 4;
22
    }
23
}
24
if (con == 5)
25
{
26
    hspeed = 0;
27
    con = 20;
28
}
29
if (gtfo == 1)
30
    vspeed = 5;