Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_shadowguy_Collision_obj_susiezilla_player_hitbox

(view raw script w/o annotations or w/e)
1
if (hp <= 0)
2
    exit;
3
if (state == UnknownEnum.Value_6 || state == UnknownEnum.Value_7)
4
    exit;
5
hp -= other.damage;
6
event_user(1);
7
with (other)
8
    event_user(0);
9
if (other.sprite_index == spr_susiezilla_tail_hitbox)
10
    image_xscale = sign(obj_susiezilla.image_xscale) * -2;
11
else
12
    image_xscale = sign(other.x - x) * 2;
13
14
enum UnknownEnum
15
{
16
    Value_6 = 6,
17
    Value_7
18
}