Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_grabobject_Step_2

(view raw script w/o annotations or w/e)
1
if (con == 0 && init == 1)
2
{
3
    if (instance_exists(grabdaddy))
4
    {
5
        x = grabdaddy.x;
6
        y = grabdaddy.y;
7
    }
8
    with (marker)
9
    {
10
        x = other.x;
11
        y = other.y - 26;
12
    }
13
}
14
if (instance_exists(shadowmarker))
15
{
16
    if (fakey < -25)
17
        image_index = 1;
18
    else
19
        image_index = 0;
20
    shadowmarker.x = round(x / 2) * 2;
21
    shadowmarker.y = round(y / 2) * 2;
22
}