Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_cactus_Draw_0

(view raw script w/o annotations or w/e)
1
image_blend = c_white;
2
draw_self_board();
3
if (!wither)
4
{
5
    timer++;
6
    if ((timer % 6) == 0)
7
        spineindex++;
8
    sinval = abs(sin(spineindex / 3)) / 2;
9
    image_blend = merge_color(#CBC83D, c_white, 0.5 + sinval);
10
    draw_sprite_ext(spr_board_cactus_spines, image_index, x, y, 2, 2, 0, image_blend, 1);
11
}