Undertale script viewer

← back to main script listing

gml_Script_scr_fx_waver

(view raw script w/o annotations or w/e)
1
b = argument0;
2
c = argument1;
3
a += 1;
4
for (i = 0; i < sprite_height; i += 1)
5
{
6
    a += 1;
7
    draw_sprite_part_ext(sprite_index, image_index, 0, i, sprite_width, 1, x + (sin(a / b) * c), y + i, 1, 1, c_white, image_alpha);
8
}