Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_tiny_ralsei_Collision_obj_collidebullet

(view raw script w/o annotations or w/e)
1
if (active == 0)
2
    exit;
3
with (other)
4
    instance_destroy();
5
if (alarm[0] > 0)
6
    exit;
7
if (other.sprite_index == spr_spamtonneo_faceAttack_nose_bullet || other.sprite_index == spr_spamtonneo_faceAttack_wisp || other.sprite_index == spr_bullet_laser_square)
8
    hp -= 4;
9
else if (other.sprite_index == spr_bullet_laser_square)
10
    hp -= 2;
11
else
12
    hp -= 10;
13
alarm[0]
14
snd_play(snd_hurt1);