1 | function scr_create_hitbox_solid |
2 | { |
3 | var _hitboxwidth = bbox_right - bbox_left; |
4 | var _hitboxheight = bbox_bottom - bbox_top; |
5 | ___createdsolid = instance_create(bbox_left, bbox_top, obj_soliddark); |
6 | ___createdsolid.image_xscale = 0.025 * _hitboxwidth; |
7 | ___createdsolid.image_yscale = 0.025 * _hitboxheight; |
8 | return ___createdsolid; |
9 | } |