Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_o_boxinggraze_Draw_0

(view raw script w/o annotations or w/e)
1
var x_offset = -5;
2
var y_offset = -5;
3
if (i_ex(o_boxingcontroller))
4
{
5
    if (o_boxingcontroller.drawflip == 0)
6
    {
7
        if (o_boxingcontroller.sprite_index == spr_bhero)
8
        {
9
            if (o_boxingcontroller.image_index == 4)
10
            {
11
                x_offset = 22;
12
                y_offset = -5;
13
            }
14
        }
15
    }
16
    else if (o_boxingcontroller.sprite_index == spr_bhero)
17
    {
18
        if (o_boxingcontroller.image_index == 4)
19
        {
20
            x_offset = -22;
21
            y_offset = -5;
22
        }
23
    }
24
    if (o_boxingcontroller.sprite_index == spr_bhero)
25
    {
26
        if (o_boxingcontroller.image_index == 6)
27
        {
28
            x_offset = -12;
29
            y_offset = 2;
30
        }
31
    }
32
}
33
draw_sprite_ext(sprite_index, image_index, x + x_offset, y + y_offset, image_xscale, image_yscale, image_angle, image_blend, image_alpha);