Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_mainchara_board_OLD_Draw_0

(view raw script w/o annotations or w/e)
1
if (movesleft > 0 && movetype == "board")
2
{
3
}
4
draw_self();
5
if (movetype == "free")
6
{
7
    if (button1_h() && 
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
8
    {
9
        draw_set_color(c_red);
10
        draw_set_blend_mode(bm_add);
11
        if (facing == 1)
12
            draw_rectangle(x + 16, y + 16 + 2, x + 16 + 32, (y + 32) - 2, true);
13
        if (facing == 3)
14
            draw_rectangle(x + 16, y + 16 + 2, (x + 16) - 32, (y + 32) - 2, true);
15
        if (facing == 0)
16
            draw_rectangle(x + 8, y + 16 + 4, (x + 32) - 8, y + 16 + 28, true);
17
        if (facing == 2)
18
            draw_rectangle(x + 8, y + 16 + 4, (x + 32) - 8, (y + 16) - 28, true);
19
        draw_set_color(c_white);
20
        draw_set_blend_mode(bm_normal);
21
    }
22
}