Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_plat_enm_aqua_miniboss_Collision_obj_plat_susieaxe_hbx

related scripts: Collision_obj_plat_enm_smallgloveCollision_obj_plat_susieaxe_hbx Create_0Destroy_0Draw_0PreCreate_0Step_0

(view raw script w/o annotations or w/e)
1
with (other)
2
{
3
    if (!hit_check(other.id))
4
        exit;
5
}
6
hit = 1;
7
with (other)
8
    do_hbx_hit(-4, -1, 1.5 - ((0.5 * other.hp) / other.__max_hp));
9
spawn_hit_petals(8, point_direction(other.x, other.y, x, y), 1);
10
if (!regular_enemy)
11
{
12
    hp = ceil(hp / 3);
13
    hp -= 1;
14
    hp *= 3;
15
    instance_destroy();
16
}
17
else
18
{
19
    flash_hurt(16711935);
20
    hp -= 3;
21
    evadedirection = sign(x - other.x);
22
    if (hp <= 0)
23
        instance_destroy();
24
    else
25
        stun();
26
}