Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_tiny_susie_axe_Collision_obj_sneo_faceattack

(view raw script w/o annotations or w/e)
1
if (other.type == 0 || other.image_alpha < 0.9)
2
    exit;
3
if (other.broken == 1)
4
{
5
    instance_destroy();
6
    exit;
7
}
8
other.shake = 6;
9
if (other.type == 1)
10
    obj_spamton_neo_enemy.eyeshp -= 1;
11
if (other.type == 2)
12
    obj_spamton_neo_enemy.nosehp -= 1;
13
if (other.type == 3)
14
    obj_spamton_neo_enemy.mouthhp -= 1;
15
snd_play(snd_damage);
16
other.invincibilitytimer = 10;
17
other.hurtflashtimer = 3;
18
if ((other.type == 1 && obj_spamton_neo_enemy.eyeshp <= 0) || (other.type == 2 && obj_spamton_neo_enemy.nosehp <= 0) || (other.type == 3 && obj_spamton_neo_enemy.mouthhp <= 0))
19
{
20
    other.broken = 1;
21
    other.image_index = 2;
22
    snd_play(snd_rocket);
23
    other.explodetimer = 16;
24
}
25
instance_destroy();