Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_dock_Draw_0

(view raw script w/o annotations or w/e)
1
draw_self();
2
var boatactive = 0;
3
with (obj_mainchara_board)
4
{
5
    if (boat == true)
6
        boatactive++;
7
}
8
if (!boatactive)
9
{
10
    siner = -40;
11
}
12
else
13
{
14
    siner++;
15
    var sinamout = (round(sin(siner / 15) * 4) / 4) + 0.2;
16
    gpu_set_fog(1, #FFE167, 0, 0);
17
    draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, sinamout / 2);
18
    gpu_set_fog(0, c_white, 0, 0);
19
}