sprite sheet maker
Let Flame sprites become ready only after their atlas page is usable
A sprite browser can inspect atlas metadata before the image arrives. A thumbnail constructed during that window can retain placeholder imagery. In flame_texturepacker 5.1.2, the tested TexturePackerSprite captured its image at construction. Loading actual page pixels later updated the page without refreshing the early sprite.
Treat metadata readiness and thumbnail readiness as distinct states. The metadata reader can populate frame names and dimensions. When the page loads, construct new sprites from the current page data or invalidate any preview objects derived from its placeholder. Use a page revision for invalidation if a live editor can reload different textures under the same logical page name. Provide a separate visible loading state for thumbnails so a real transparent cel can still be distinguished from pending data.
Build a controlled loader that delays a page containing an unmistakable red tile. Visit its gallery before the delay ends and again after the page becomes ready. Then simulate a new page revision with a blue tile. Verify successive thumbnail pixels and verify that an older load completion cannot overwrite the newer color. technical guide and test fixture provides a native placeholder-versus-loaded-image check that isolates the construction timing.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.