Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_final_orb_Collision_obj_yheart_shot

(view raw script w/o annotations or w/e)
1
if (destroyable == 1)
2
{
3
    if (other.big == 0)
4
    {
5
        hp--;
6
        speed = 3;
7
    }
8
    else
9
    {
10
        hp -= 3;
11
        speed = 0;
12
    }
13
    if (hp <= 0)
14
    {
15
        event_user(0);
16
        snd_play(snd_badexplosion);
17
        speed = 0;
18
    }
19
    else
20
    {
21
        timer = -1;
22
        snd_play(snd_damage);
23
    }
24
}
25
with (other)
26
    event_user(0);