///box_scale_update(); function box_scale_update() { global.box_scale = sprite_get_width(spr_slot)*global.icon_scale; }