Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shadowman_sax_bullet_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    init = 1;
4
    timer = 2;
5
    path_start(bulletPath, 21, path_action_stop, false);
6
}
7
if (spawnrate >= 0)
8
{
9
    if (spawntimer == spawnrate)
10
    {
11
        d = 
scr_childbullet
scr_childbullet

function
scr_childbullet()
{ var __child = instance_create(argument[0], argument[1], argument[2]); var __parent = (argument_count == 4) ? argument[3] : id; if (__parent.damage != -1) __child.damage = __parent.damage; if (__parent.grazepoints != -1) __child.grazepoints = __parent.grazepoints; if (__parent.timepoints != -1) __child.timepoints = __parent.timepoints; if (__parent.inv != -1) __child.inv = __parent.inv; if (__parent.target != -1) __child.target = __parent.target; if (__parent.grazed != -1) __child.grazed = __parent.grazed; if (__parent.grazetimer != -1) __child.grazetimer = __parent.grazetimer; __child.element = __parent.element; return __child; }
(x, y, obj_shadowman_sax_bullet_trail);
12
        d.grazepoints = childgraze;
13
        d.image_angle = direction - 180;
14
        spawntimer = 0;
15
    }
16
    else
17
    {
18
        spawntimer++;
19
    }
20
}
21
image_angle = direction - 180;
22
if (x < (obj_growtangle.x - 140))
23
    image_alpha -= 0.1;