Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_roller_Step_0

(view raw script w/o annotations or w/e)
1
if (con == -1)
2
    speed = px;
3
if (con == 1)
4
{
5
    if (timer == 0)
6
        timer = 5;
7
    timer--;
8
    if (timer == 0)
9
    {
10
        con = 2;
11
        speed = px;
12
    }
13
}
14
if (con == 2)
15
{
16
}
17
scr_depth_alt
scr_depth_alt

function
scr_depth_alt()
{ depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); }
();
18
if ((x < (camerax() - 80) && speed < 0) || (x > (camerax() + 720) && speed > 0))
19
    instance_destroy();