Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_bullet_knife_Alarm_0

(view raw script w/o annotations or w/e)
1
active = true;
2
sprite_index = spr_attack_knifechain;
3
direction = 
scr_at_player
scr_at_player

function
scr_at_player(arg0 = x, arg1 = y)
{ return point_direction(arg0, arg1, obj_heart.x + 10, obj_heart.y + 10); }
(x, y);
4
image_angle = direction;
5
speed = 6.25;
6
if (netskie == 1)
7
{
8
    sprite_index = spr_attack_knife_kitsune;
9
    image_xscale = 1;
10
    image_yscale = 1;
11
    speed = 5.5;
12
}
13
gravity_direction = direction;
14
gravity = 0.1;
15
depth -= 51;
16
with (obj_lerpvar)
17
{
18
    if (target == other.id)
19
        instance_destroy();
20
}