Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_confetti_overworld_Draw_0

(view raw script w/o annotations or w/e)
1
if (version == 1)
2
{
3
    if (falltime == 100)
4
    {
5
        shine_index = 1;
6
        if (!audio_is_playing(snd_boost))
7
            snd_play(snd_boost);
8
    }
9
    if (shine_index > 0)
10
    {
11
        draw_sprite_ext(spr_lancer_card_shine4, shine_index, x + 8, (y - height) + 8, image_xscale, image_yscale, image_angle, c_white, image_alpha);
12
        shine_index += 1;
13
        if (shine_index >= 12)
14
            shine_index = 0;
15
    }
16
}
17
var _color = image_blend;
18
if (fade && height < 0)
19
    _color = merge_color(image_blend, c_black, round_to_multiple(clamp01(inverselerp(-80, -160, height)), 0.1));
20
draw_sprite_ext(sprite_index, image_index, x, y - height, image_xscale, image_yscale, image_angle, _color, image_alpha);