Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_biglaser_friendlyhitbox_Collision_obj_sneo_lilguy

(view raw script w/o annotations or w/e)
1
exit;
2
if (image_yscale <= 0)
3
    exit;
4
if (collision_line(x, y, x + lengthdir_x(600, image_angle), obj_sneo_biglaser.y + lengthdir_y(600, image_angle), obj_sneo_lilguy, true, false))
5
{
6
    d = instance_create(other.x, other.y, obj_sneo_crew_dissolve);
7
    d.direction = direction;
8
    d.depth = depth - 2;
9
    instance_destroy(other);
10
}