Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_skychain_Step_0

(view raw script w/o annotations or w/e)
1
image_angle = direction;
2
if (con == 0)
3
{
4
    timer += 1;
5
    if (timer >= 2)
6
    {
7
        sons += 1;
8
        son[sons] = instance_create(x, y, obj_fadechain);
9
        son[sons].image_angle = image_angle;
10
        son[sons].direction = direction;
11
        son[sons].speed = speed / 2.5;
12
        son[sons].active = 1;
13
        son[sons].damage = 10;
14
        
scr_bullet_inherit
scr_bullet_inherit

function
scr_bullet_inherit(arg0)
{ if (instance_exists(arg0)) { arg0.damage = damage; arg0.grazepoints = grazepoints; arg0.timepoints = timepoints; arg0.inv = inv; arg0.target = target; arg0.grazed = 0; arg0.grazetimer = 0; } }
(son[sons]);
15
        timer = 0;
16
    }
17
}
18
if (sons >= 30)
19
    instance_destroy();