Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_puzzlecloset3_hallway_mirror_Draw_0

(view raw script w/o annotations or w/e)
1
draw_self();
2
if (x == 2900 && y == 680)
3
{
4
    with (obj_board_marker)
5
    {
6
        var yloc = (other.y + 20 + 726) - y;
7
        draw_sprite_ext(sprite_index, image_index, x, yloc, image_xscale, image_xscale, 0, image_blend, 1);
8
    }
9
    with (obj_board_smokepuff)
10
    {
11
        var yloc = (other.y + 20 + 726) - y;
12
        draw_sprite_ext(sprite_index, image_index, x, yloc, image_xscale, image_xscale, 0, image_blend, 1);
13
    }
14
    if (i_ex(obj_mainchara_board))
15
    {
16
        with (obj_mainchara_board)
17
        {
18
            var dontdraw = false;
19
            var yloc = (other.y + 20 + 726) - y;
20
            var sprite = sprite_index;
21
            if (sprite_index == dsprite)
22
                sprite = usprite;
23
            if (sprite_index == usprite)
24
                sprite = dsprite;
25
            if (sprite_index == spr_ch3_boardchar)
26
                dontdraw = true;
27
            if (name == "ralsei" && i_ex(stool))
28
            {
29
                dontdraw = true;
30
                draw_sprite_ext(spr_ralsei_board_stoolforme_back, image_index, x, yloc, 2, 2, 0, c_white, 1);
31
            }
32
            if (!dontdraw)
33
                draw_sprite_ext(sprite, image_index, x, yloc, 2, 2, 0, c_white, 1);
34
        }
35
    }
36
}