Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_enemy_contact_hitbox_Step_2

(view raw script w/o annotations or w/e)
1
if (parentid != -1 && !instance_exists(parentid))
2
{
3
    instance_destroy();
4
    exit;
5
}
6
active_hitbox = parentid.active_hitbox;
7
x = parentid.x + 16;
8
y = parentid.y + 16;
9
depth = parentid.depth - 1;