Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_bq_baseball_final_Collision_o_boxingcontroller

related scripts: Alarm_0 • Collision_o_boxingcontroller • Collision_o_boxingcontroller_fist_hitbox • Create_0 • Destroy_0 • Draw_0 • Other_24 • Other_25 • Step_0

(view raw script w/o annotations or w/e)
1
if (o_boxingcontroller.punchcon > 0 && o_boxingcontroller.punchcon <= 4)
2
    exit;
3
if (y < 185)
4
    exit;
5
baseball_hitbox = instance_create(o_boxingcontroller.x, o_boxingcontroller.y - 60, o_boxing_hitbox);
6
with (baseball_hitbox)
7
{
8
    hit_jumping = 0;
9
    give_hurt = 22 / f;
10
    timer = 5 / f;
11
    damage = 20;
12
    image_yscale = 4;
13
    image_xscale = 4;
14
    final_attack = 1;
15
}
16
instance_destroy();
17
with (o_boxingqueen)
18
{
19
    friction = 0;
20
    gravity = 0;
21
}