sprite sheet maker
Test a Sprite Collider’s Top Edge After Trimming and Packing
A collision outline can be traced correctly and then flipped when an importer pastes it over a packed pose. Position, pixel row direction, and trim metadata are independent quantities. Give the atlas pipeline a witness that catches mistakes in each one.
Use an off-center mark in a non-square cel
Begin with a 16 × 10 original, with a solid patch near its upper-left corner. Leave enough transparent pixels on the other sides for trimming to change the crop origin. After packing and decoding, restore the outline to untrimmed coordinates and transform to physics coordinates. Require a probe near the intended patch to hit and a vertically mirrored probe to miss. Translate the cel once more and repeat the test so asset placement cannot conceal an incorrect local origin.
The technical guide and test fixture explains the y-up row mapping and reports approximate interpolated bounds for a native test. For your validator, use robust probe points away from contour boundaries rather than expecting all outline coordinates to equal exact integers. Save the trim offset and full canvas height alongside the witness.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.