Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_movingBookshelf_Step_2

(view raw script w/o annotations or w/e)
1
if (riding == true)
2
{
3
    with (obj_mainchara)
4
    {
5
        global.facing = 2;
6
        setxy((other.x + (other.sprite_width / 2)) - 20, (other.y + (other.sprite_height / 2)) - 26);
7
        ignoredepth = 1;
8
        depth = other.depth - 5;
9
        fun = 1;
10
        sprite_index = other.kriscling;
11
        image_index = 2;
12
        image_speed = 0;
13
    }
14
    if (ralsei != 0)
15
    {
16
        with (ralsei)
17
        {
18
            setxy((other.x + (other.sprite_width / 2)) - 62, (other.y + (other.sprite_height / 2)) - 36);
19
            follow = 0;
20
            ignoredepth = 1;
21
            depth = other.depth - 3;
22
            fun = 1;
23
            sprite_index = other.ralseicling;
24
            image_index = 0;
25
        }
26
    }
27
    if (susie != 0)
28
    {
29
        with (susie)
30
        {
31
            setxy(other.x + (other.sprite_width / 2) + 18, (other.y + (other.sprite_height / 2)) - 38);
32
            follow = 0;
33
            ignoredepth = 1;
34
            depth = other.depth - 3;
35
            fun = 1;
36
            sprite_index = other.susiecling;
37
            image_index = 0;
38
        }
39
    }
40
}