Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_knight_bullethell_bullet_bounce_Step_0

(view raw script w/o annotations or w/e)
1
if (i_ex(obj_knight_lightorb) && distance_to_object(obj_knight_lightorb) > 176)
2
{
3
    image_alpha -= 0.2;
4
    if (image_alpha <= 0)
5
        instance_destroy();
6
}
7
if (i_ex(obj_knight_lightorb))
8
    depth = obj_knight_lightorb.depth - 10;
9
if (x < (obj_growtangle.xstart - 70))
10
    direction = 45;
11
if (x > (obj_growtangle.xstart + 52))
12
    direction = 225;
13
if (y < (obj_growtangle.y - 122))
14
    direction = 315;
15
if (y > (obj_growtangle.y + 100))
16
    direction = 135;
17
image_angle = direction;
18
visible = true;
19
if (timer == 40)
20
    instance_destroy();
21
timer++;