Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_DCA01_roaringknight_sword_Step_0

(view raw script w/o annotations or w/e)
1
y = cameray() + 80 + ypos;
2
if (image_alpha < 1)
3
{
4
    ypos -= 1;
5
    image_alpha += 0.1;
6
}
7
timer += 1;
8
if (timer == 1)
9
{
10
    snd_stop(snd_knight_jump_quick);
11
    snd_play_x(snd_knight_jump_quick, 0.5, 1.3);
12
}
13
if (timer >= 10 && timer < 16)
14
{
15
    image_blend = merge_color(c_white, c_red, (timer - 10) / 6);
16
    ypos = lerp(ypos, 38, (timer - 10) / 6);
17
}
18
if (timer == 16)
19
{
20
    con = y;
21
    ypos += 600;
22
    snd_stop(snd_knight_cut2);
23
    snd_play_x(snd_knight_cut2, 0.5, 1.3);
24
}
25
if (timer == 18)
26
    instance_destroy();