Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_cshot_Collision_obj_yheart_shot

(view raw script w/o annotations or w/e)
1
if (abs(angle_difference(point_direction(x, y, other.x, other.y), opening)) <= openingsize)
2
    exit;
3
if (destroyable == 1)
4
{
5
    if (other.big == 0)
6
    {
7
        with (other)
8
            event_user(0);
9
    }
10
    anim = instance_create(x, y, obj_yshot_anim);
11
    anim.image_xscale = image_xscale;
12
    anim.image_yscale = image_yscale;
13
    with (anim)
14
        sprite_index = spr_yheart_shot_hit3;
15
    instance_destroy();
16
}
17
else if (destroyable == -1)
18
{
19
    angle_speed = 0;
20
    with (other)
21
        event_user(0);
22
    hit = true;
23
    image_blend = c_red;
24
}