Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_church_old_man_ripple_Other_10

(view raw script w/o annotations or w/e)
1
if (type == 3)
2
{
3
    var _col = 16777215;
4
    if (timer == 0)
5
        _col = 8421504;
6
    if (timer >= 5)
7
        _col = merge_color(c_white, c_black, clamp01((timer - 5) / 15));
8
    draw_sprite_ext(spr_kris_defending_dark, timer, x - 44, y - 80, 2, 2, 0, _col, 1);
9
}
10
if (type == 4)
11
{
12
    var _col = 16777215;
13
    if (timer == 0)
14
        _col = 8421504;
15
    if (timer >= 5)
16
        _col = merge_color(c_white, c_black, clamp01((timer - 5) / 15));
17
    draw_sprite_ext(spr_kris_defending_parry_dark, clamp((timer + 6) / 3, 0, 8), x - 44, y - 80, 2, 2, 0, _col, 1);
18
}