Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ow_viroring_Draw_0

(view raw script w/o annotations or w/e)
1
draw_self();
2
draw_set_blend_mode(bm_add);
3
if (timer >= (shotSpeed - 10) && active)
4
    flashamt = lerp(flashamt, (timer - (shotSpeed - 10)) / 10, 0.5);
5
else
6
    flashamt = lerp(flashamt, 0, 0.4);
7
for (var i = 0; i < 5; i++)
8
    draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, c_white, flashamt);
9
draw_set_blend_mode(bm_normal);