Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_climb_bullet_knightattack_Step_2

(view raw script w/o annotations or w/e)
1
var xx = camerax();
2
var yy = cameray();
3
timer++;
4
if (config == 0)
5
{
6
    fallspeed = 2;
7
    if (timer == 1)
8
    {
9
        var fadeintime = clamp(delay, 4, 10);
10
        image_alpha = 0;
11
        
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; }
("image_alpha", 0, 1, fadeintime, 2, "in");
12
        snd_play(snd_spearappear);
13
        snd_stop(snd_spearappear);
14
    }
15
    if (timer < delay)
16
        y = yy + 60;
17
    if (timer == delay)
18
    {
19
        snd_stop(snd_chargeshot_fire);
20
        snd_play(snd_chargeshot_fire, 1, 1.4);
21
        gravity = fallspeed;
22
    }
23
    if (timer > delay)
24
    {
25
        if ((timer % 2) == 0)
26
            
scr_afterimagefast
scr_afterimagefast

function
scr_afterimagefast()
{ afterimage = instance_create(x, y, obj_afterimage); afterimage.sprite_index = sprite_index; afterimage.image_index = image_index; afterimage.image_blend = image_blend; afterimage.image_speed = 0; afterimage.depth = depth; afterimage.image_xscale = image_xscale; afterimage.image_yscale = image_yscale; afterimage.image_angle = image_angle; afterimage.fadeSpeed = 0.08; return afterimage; }
();
27
        if (y > (yy + 480 + 120))
28
            instance_destroy();
29
    }
30
}