Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_boat_Step_2

(view raw script w/o annotations or w/e)
1
if (engaged)
2
{
3
    with (obj_mainchara_board)
4
    {
5
        sleepy = false;
6
        setxy(other.x, other.y);
7
        facing = other.facing;
8
        if (swordbuffer <= 0)
9
            image_index = 0;
10
        if (other.updateplayerdepth == true)
11
        {
12
            depth = other.depth - 1;
13
            if (controlled == 1)
14
                depth -= 2;
15
        }
16
    }
17
}