Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_bullet_orange_debris_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (x > (obj_growtangle.x + 500))
3
    x -= 1000;
4
if (x < (obj_growtangle.x - 500))
5
    x += 1000;
6
if (y > (obj_growtangle.y + 500))
7
    y -= 1000;
8
if (y < (obj_growtangle.y - 500))
9
    y += 1000;
10
if (point_distance(x, y, obj_growtangle.x, obj_growtangle.y) > 500)
11
{
12
    with (instance_place(x, y, object_index))
13
    {
14
        x += lengthdir_x(60, point_direction(x, y, other.x, other.y) + 180);
15
        y += lengthdir_y(60, point_direction(x, y, other.x, other.y) + 180);
16
    }
17
}
18
spinrate *= 0.97;
19
speed = 
scr_approach_curve
scr_approach_curve

function
scr_approach_curve(arg0, arg1, arg2, arg3 = 0.1)
{ return
scr_approach(arg0, arg1, max(arg3, abs(arg1 - arg0) / arg2));
}
(speed, 0, 15, 0);
20
image_angle += (angle_difference(direction, image_angle) / 5);