Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_pippins_large_treasure_Draw_0

(view raw script w/o annotations or w/e)
1
if (!is_open)
2
{
3
    draw_self();
4
}
5
else if (is_inside)
6
{
7
    draw_self();
8
    scr_draw_set_mask(true);
9
    draw_sprite_ext(sprite_index, 1, x, y, image_xscale, image_yscale, 0, c_white, 1);
10
    scr_draw_in_mask_begin();
11
    draw_sprite_ext(pippins_sprite, pippins_anim, pippins_x, pippins_y, 2, 2, 0, c_white, 1);
12
    scr_draw_in_mask_end();
13
    draw_sprite_ext(spr_treasurebox_cover, 0, x, y, image_xscale, image_yscale, 0, c_white, 1);
14
}
15
else
16
{
17
    draw_self();
18
    draw_sprite_ext(pippins_sprite, pippins_anim, pippins_x, pippins_y, 2, 2, 0, c_white, 1);
19
}