Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_actor_orbiter_Step_0

(view raw script w/o annotations or w/e)
1
if (active)
2
{
3
    if (!reinit)
4
    {
5
        xstart = x;
6
        ystart = y;
7
        reinit = true;
8
    }
9
    for (var i = 0; i < count; i++)
10
    {
11
        actor[i].x = x + lengthdir_x(length[i], angle_offset[i] + direction);
12
        actor[i].y = y + (lengthdir_y(length[i], angle_offset[i] + direction) * yscale) + height_offset[i];
13
        if (auto_depth)
14
        {
15
            with (actor[i])
16
                
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
17
        }
18
    }
19
}
20
else if (reinit)
21
{
22
    reinit = false;
23
}
24
direction += rotation;