Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_darkshape_star_Draw_0

(view raw script w/o annotations or w/e)
1
if (sprite_index == spr_darkshape_transform)
2
{
3
    draw_self();
4
}
5
else
6
{
7
    if (!i_ex(obj_heart))
8
        gpu_set_blendmode(bm_add);
9
    draw_sprite_ext(sprite_index, image_index, x, y, image_xscale + ((global.time % 2) * 0.2), image_yscale + ((global.time % 2) * 0.2), image_angle, image_blend, 1);
10
    draw_sprite_ext(sprite_index, image_index, x, y, image_xscale + 0.1 + ((global.time % 2) * 0.2), image_yscale + 0.1 + ((global.time % 2) * 0.2), image_angle, image_blend, 0.5);
11
    gpu_set_blendmode(bm_normal);
12
}