Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_bullet_knight_stream_Step_0

(view raw script w/o annotations or w/e)
1
timer++;
2
if (timer == 20)
3
    line_width = 0;
4
if (timer >= 20 && timer < 40)
5
{
6
    if (timer < 24)
7
        width_goal = 64 + (sin(timer * 2.35) * 16);
8
    else
9
        width_goal = 32 + (sin(timer * 2.35) * 16);
10
}
11
else if (timer >= 40)
12
{
13
    width_goal = 0;
14
}
15
else if (timer > 8)
16
{
17
    width_goal = 0;
18
}
19
if (timer > 15 && (timer % 8) == 0 && timer < 40)
20
{
21
    for (a = 1; a < 4; a++)
22
    {
23
        with (
scr_fire_bullet
scr_fire_bullet

function
scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{ var bullet; if (arg8 != 87135) bullet = instance_create_depth(arg0, arg1, arg8, arg2); else bullet = instance_create(arg0, arg1, arg2); with (bullet) { direction = arg3; speed = arg4; if (arg5 != -4) sprite_index = arg5; updateimageangle = arg6; if (arg6) image_angle = arg3; if (arg7) { with (other)
scr_bullet_inherit(other.id);
} } return bullet; } function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0) { var bullet = instance_create(arg0, arg1, arg2); with (bullet) { direction = arg3; speed = arg4; sprite_index = arg5; image_blend = arg6; updateimageangle = arg7; if (arg7) image_angle = arg3; } return bullet; }
(x1 + lengthdir_x(60 * a, direction + 270), y1 + lengthdir_y(60 * a, direction + 270), obj_regularbullet, direction + 180, 15, spr_diamondbullet))
24
        {
25
            visible = false;
26
            image_angle = direction;
27
        }
28
    }
29
    for (a = 1; a < 4; a++)
30
    {
31
        with (
scr_fire_bullet
scr_fire_bullet

function
scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{ var bullet; if (arg8 != 87135) bullet = instance_create_depth(arg0, arg1, arg8, arg2); else bullet = instance_create(arg0, arg1, arg2); with (bullet) { direction = arg3; speed = arg4; if (arg5 != -4) sprite_index = arg5; updateimageangle = arg6; if (arg6) image_angle = arg3; if (arg7) { with (other)
scr_bullet_inherit(other.id);
} } return bullet; } function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0) { var bullet = instance_create(arg0, arg1, arg2); with (bullet) { direction = arg3; speed = arg4; sprite_index = arg5; image_blend = arg6; updateimageangle = arg7; if (arg7) image_angle = arg3; } return bullet; }
(x1 + lengthdir_x(60 * a, direction + 90), y1 + lengthdir_y(60 * a, direction + 90), obj_regularbullet, direction + 180, 15, spr_diamondbullet))
32
        {
33
            visible = false;
34
            image_angle = direction;
35
        }
36
    }
37
}
38
if (timer == 50)
39
    instance_destroy();