Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_DCB02_vfx_circle_old_Draw_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    with (obj_ch4_DCB02_vfx_circle)
4
    {
5
        if (id != other.id)
6
            depth += 1;
7
    }
8
    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("cursize", 0, maxsize, lifetime);
9
    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("alpha", 1, 0, lifetime);
10
    
scr_doom
scr_doom

function
scr_doom(arg0 = id, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; persistent = arg0.persistent; } }
(id, lifetime + 1);
11
    init = 1;
12
}
13
var circledetail = 36;
14
var scale = cursize;
15
draw_set_color(color);
16
for (var i = 0; i < (ripplecount + 1); i++)
17
{
18
    for (var j = 0; j < (360 / circledetail); j++)
19
    {
20
        draw_set_alpha((alpha * i) / ripplecount);
21
        var lx1 = x + lengthdir_x((scale * i) / ripplecount, j * circledetail);
22
        var ly1 = y + lengthdir_y(((scale * i) / ripplecount) * 2, j * circledetail);
23
        var lx2 = x + lengthdir_x((scale * i) / ripplecount, (j - 1) * circledetail);
24
        var ly2 = y + lengthdir_y(((scale * i) / ripplecount) * 2, (j - 1) * circledetail);
25
        d_line_width(lx1, ly1, lx2, ly2, ripplethicc);
26
    }
27
}
28
draw_set_alpha(1);
29
draw_set_color(c_white);