Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_marker_sin_Draw_0

(view raw script w/o annotations or w/e)
1
timer++;
2
var xmod = sin(timer / xrate) * xamt;
3
var ymod = sin(timer / yrate) * yamt;
4
if (xrate == 0 || xamt == 0)
5
    xmod = 0;
6
if (yrate == 0 || yamt == 0)
7
    ymod = 0;
8
if (style == 0)
9
    draw_sprite_ext(sprite_index, image_index, 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(x + xmod),
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(y + ymod), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
10
if (style == 1)
11
    draw_sprite_ext(sprite_index, image_index, 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(x + xmod),
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(y + abs(ymod)), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
12
if (style == 2)
13
    draw_sprite_ext(sprite_index, image_index, 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(x + abs(xmod)),
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(y + ymod), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
14
if (style == 3)
15
    draw_sprite_ext(sprite_index, image_index, 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(x + abs(xmod)),
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(y + abs(ymod)), image_xscale, image_yscale, image_angle, image_blend, image_alpha);