Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_splitbouncer_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
        breaking = 10;
7
        destroyable = 0;
8
        speed = 0;
9
        obj_shrinktangle.sizeup += shrinksize;
10
        image_blend = c_white;
11
        sprite_index = spr_sneo_c_weakpoint_hit;
12
    }
13
    flash = 1;
14
    if (other.big == 0)
15
    {
16
        with (other)
17
            event_user(0);
18
    }
19
}