Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_bq_baseball_Other_25

(view raw script w/o annotations or w/e)
1
if (o_boxingcontroller.punchcon > 0 && o_boxingcontroller.punchcon <= 4)
2
    exit;
3
if (o_boxingcontroller.invincible == 1)
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
}
15
instance_destroy();