Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shadow_mantle_enemy_outro_Draw_0

(view raw script w/o annotations or w/e)
1
timer++;
2
if (timer == 1)
3
    snd_play_x(snd_board_bosshit, 1, 0.9);
4
if (timer == 12)
5
    snd_play_x(snd_board_bosshit, 0.6, 0.9);
6
if (timer == 24)
7
    snd_play_x(snd_board_bosshit, 0.3, 0.9);
8
if (timer == 36)
9
    snd_play_x(snd_board_bosshit, 0.1, 0.9);
10
if (timer == 48)
11
    snd_play_x(snd_board_bosshit, 0.05, 0.9);
12
if (timer < 25)
13
{
14
    if (image_alpha == 1)
15
        image_alpha = 0;
16
    else
17
        image_alpha = 1;
18
}
19
if (timer == 25)
20
    image_alpha = 1;
21
if (timer > 54 && timer < 64)
22
{
23
    x = lerp(x, 304, (timer - 54) / 10);
24
    y = lerp(y, 174, (timer - 54) / 10);
25
}
26
if (timer == 104 || timer == 134 || timer == 164)
27
{
28
    snd_play(snd_board_bosshit);
29
    hurttimer = 8;
30
    with (obj_shadow_mantle_bg)
31
        con = 2;
32
}
33
siner++;
34
draw_sprite_ext(sprite_index, image_index, round(x / 2) * 2, round((y + (sin(siner / 8) * 4)) / 2) * 2, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
35
if (hurttimer > 0)
36
{
37
    hurttimer--;
38
    if ((hurttimer % 2) == 0)
39
    {
40
        d3d_set_fog(true, c_white, 0, 1);
41
        draw_sprite_ext(sprite_index, image_index, round(x / 2) * 2, round((y + (sin(siner / 8) * 4)) / 2) * 2, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
42
        d3d_set_fog(false, c_black, 0, 0);
43
    }
44
}