Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_roaringknight_slash_Step_2

(view raw script w/o annotations or w/e)
1
damage = 206;
2
grazepoints = 50;
3
if (!alarm[0])
4
{
5
    width *= 0.66;
6
    image_alpha *= 0.66;
7
}
8
if (width < 12)
9
    active = false;
10
if (width < 0.5)
11
    instance_destroy();
12
if (width > 4)
13
{
14
    with (obj_growtangle)
15
    {
16
        x = xstart + choose(-2, -1, 0, 1, 2);
17
        y = ystart + choose(-2, -1, 0, 1, 2);
18
    }
19
    
scr_heartclamp
scr_heartclamp

function
scr_heartclamp(arg0 = 0, arg1 = 0)
{ if (i_ex(obj_growtangle)) { with (obj_heart) { var xthick = (obj_growtangle.image_xscale * 2) + 1; var ythick = (obj_growtangle.image_yscale * 2) + 1; x = clamp(x,
scr_get_box(2) + xthick + arg0, 
scr_get_box(0) - (20 + xthick + arg0));
y = clamp(y,
scr_get_box(1) + ythick + arg1, 
scr_get_box(3) - (20 + ythick + arg1));
} } }
();
20
}