function scr_fusuma_mask() { if (other.y == y && far_background == other.far_background) { mask = other; other.fusuma[other.count] = id; other.count++; if (other.depth > depth && !far_background) other.depth = depth - 1; if (object_index == obj_plat_fusumawall) other.mask_height = max(other.mask_height, image_yscale * 20); } else { var _found = false; with (obj_fusuma_mask) { if (other.y == y && far_background == other.far_background) { other.mask = self; fusuma[count] = other; count++; if (depth > other.depth && !far_background) depth = other.depth - 1; _found = true; if (other.object_index == obj_plat_fusumawall) mask_height = max(mask_height, other.image_yscale * 20); break; } } if (!_found) { var _mask = instance_create(0, y, obj_fusuma_mask); mask = _mask; if (far_background) _mask.depth = 15775099; else _mask.depth = depth - 1; _mask.fusuma[0] = id; _mask.far_background = far_background; _mask.count++; _mask.image_yscale = 2; _mask.image_xscale = 2; _mask.mask_height = _mask.sprite_height; _mask.first = false; _found = true; if (object_index == obj_plat_fusumawall) _mask.mask_height = max(_mask.mask_height, image_yscale * 20); } } }