Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_pippins_rummage_Draw_0

(view raw script w/o annotations or w/e)
1
if (!is_init)
2
    exit;
3
if (!hold_coin)
4
    draw_self();
5
pippins_anim += pippins_anim_speed;
6
if (is_inside)
7
{
8
    scr_draw_set_mask(true);
9
    draw_sprite_ext(sprite_index, 1, x, y, 4, 4, 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_sprite_ext(pippins_sprite, pippins_anim, pippins_x, pippins_y, 2, 2, 0, c_white, 1);
18
}
19
if (hold_coin)
20
    draw_sprite_ext(spr_dw_point_large, 0, pippins_x + 24, pippins_y - 28, 2, 2, 0, c_white, 1);