Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_tasquePawPrint_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    with (obj_chaseenemy)
4
    {
5
        if (sprite_index == spr_npc_swatchling_sweep_walk && place_meeting(x, y, other.id))
6
            other.con++;
7
    }
8
    if (place_meeting(x, y, obj_mainchara))
9
        con++;
10
    if (place_meeting(x, y, obj_caterpillarchara))
11
        con++;
12
}
13
if (con == 1)
14
{
15
    image_alpha = lerp(image_alpha, 0, 0.125);
16
    if (image_alpha == 0)
17
        instance_destroy();
18
}