Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_cactus_flirt_Draw_0

(view raw script w/o annotations or w/e)
1
image_blend = c_white;
2
draw_sprite_ext(sprite_index, 0, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
3
spinetimer++;
4
if ((spinetimer % 6) == 0)
5
    spineindex++;
6
sinval = abs(sin(spineindex / 3)) / 2;
7
image_blend = merge_color(#CBC83D, c_white, 0.5 + sinval);
8
draw_sprite_ext(spr_board_cactus_spines, 0, x, y, 2, 2, 0, image_blend, 1);
9
image_blend = c_white;
10
if (active)
11
{
12
    var blushamount = 0;
13
    var krx = kr.x + 16;
14
    var kry = kr.y + 16;
15
    var dist = 0;
16
    dist = point_distance(x + 16, y + 16, krx, kry);
17
    if (dist < 48)
18
    {
19
        blushamount = 1;
20
        draw_sprite_ext(sprite_index, 1, x, y, image_xscale, image_yscale, image_angle, image_blend, blushamount);
21
    }
22
}