Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_dogtable_controlled_Draw_0

(view raw script w/o annotations or w/e)
1
if (drawtype == 0)
2
{
3
    image_speed = 0.25;
4
    rot = 0;
5
    if (vertState == 0)
6
    {
7
        if (left_h())
8
        {
9
            raheight = 8;
10
            suheight = -8;
11
            rot = 15;
12
        }
13
        if (right_h())
14
        {
15
            raheight = -8;
16
            suheight = 8;
17
            rot = -15;
18
        }
19
        if ((right_h() && left_h()) || (!right_h() && !left_h()))
20
        {
21
            raheight = 0;
22
            suheight = 0;
23
            rot = 0;
24
        }
25
    }
26
    else
27
    {
28
        raheight = 0;
29
        suheight = 0;
30
        rot = 0;
31
    }
32
    if (drawcustom == 0)
33
    {
34
        krspr = spr_krisd_dark;
35
        suspr = spr_susie_sheeh;
36
        raspr = spr_ralsei_surprised_down;
37
    }
38
    dogimagespeed += 0.25;
39
    draw_sprite_ext(spr_dog_walk, dogimagespeed, x, y + 24, 2, 2, 0, c_white, 1);
40
    draw_sprite_ext(spr_dogtable_table, 0, x, y, 2, 2, rot, c_white, 1);
41
    draw_sprite_ext(raspr, 1, x - 60, (y - 76) + raheight, 2, 2, 0, c_white, 1);
42
    draw_sprite_ext(suspr, 0, x + 12, (y - 82) + suheight, 2, 2, 0, c_white, 1);
43
    draw_sprite_ext(krspr, 0, x - 21, y - 60, 2, 2, 0, c_white, 1);
44
}
45
if (drawtype == 1)
46
{
47
    dogimagespeed += 0.25;
48
    draw_sprite_ext(spr_dog_walk, dogimagespeed, x, y + 24, 2, 2, 0, c_white, 1);
49
    draw_sprite_ext(spr_dogtable_table, 0, x, y, 2, 2, 0, c_white, 1);
50
}