Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_headwave_Collision_obj_yheart_shot

(view raw script w/o annotations or w/e)
1
if (destroyable == 1)
2
{
3
    hp--;
4
    if (other.big == 1 || hp <= 0)
5
    {
6
        anim = instance_create(x, y, obj_yshot_anim);
7
        anim.image_xscale = image_xscale;
8
        anim.image_yscale = image_yscale;
9
        with (anim)
10
            sprite_index = spr_yheart_shot_hit3;
11
        instance_destroy();
12
    }
13
    else
14
    {
15
        flash = 1;
16
    }
17
    if (other.big == 0)
18
    {
19
        with (other)
20
            event_user(0);
21
    }
22
}