Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_tiny_susie_axe_Collision_obj_pipis_bullet

(view raw script w/o annotations or w/e)
1
instance_destroy();
2
with (other)
3
{
4
    shake = 8;
5
    hp -= 0.5;
6
    if (image_index < 3)
7
        image_index += 0.5;
8
    snd_play(snd_damage);
9
    if (hp < 1)
10
    {
11
        fx = instance_create(x, y, obj_pipis_destroy_fx);
12
        fx.image_xscale = 1.5;
13
        fx.image_yscale = 1.5;
14
        repeat (3)
15
        {
16
            fx = instance_create(x, y, obj_pipis_egg_bullet_piece);
17
            fx.image_xscale = 2;
18
            fx.image_yscale = 2;
19
        }
20
        instance_destroy();
21
    }
22
    else
23
    {
24
        fx = instance_create(x, y, obj_pipis_egg_bullet_piece);
25
        fx.image_index = image_index;
26
    }
27
}