Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_holywater_splash_Draw_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(parentid))
2
{
3
    if (image_angle == 270)
4
        x = parentid.x + 6;
5
    else
6
        x = parentid.x - 6;
7
}
8
else
9
{
10
    instance_destroy();
11
    exit;
12
}
13
if (global.turntimer < 1)
14
    instance_destroy();
15
siner += 1.5;
16
var _duration = 2.5 * yscale;
17
if (sin(siner / _duration) < 0)
18
    instance_destroy();
19
draw_sprite_ext(sprite_index, image_index, x, y, ((siner / _duration) + 0.75) * xscale, sin(siner / _duration) * yscale, image_angle, image_blend, 1);