Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_yheart_shot_Other_10

(view raw script w/o annotations or w/e)
1
if (makeanim)
2
{
3
    myanim = instance_create(x, y, obj_yshot_anim);
4
    with (myanim)
5
        sprite_index = spr_yheart_shot_hit;
6
    if (big == 1)
7
    {
8
        with (myanim)
9
        {
10
            image_xscale = 3;
11
            image_yscale = 3;
12
        }
13
    }
14
    if (instance_exists(obj_heart))
15
        myanim.depth = obj_heart.depth - 100;
16
}
17
instance_destroy();