sprite sheet maker
Reproduce a Stale Sprite Preview with a Forced Callback Order
When a sprite reviewer clicks from Idle to Attack, a screenshot taken immediately can show the right clip even if an older scheduled update takes control a moment later. Test the event ordering rather than trying to reproduce a visually brief glitch by hand.
Put the old update behind a controllable queue
Give Idle a visibly red test frame and Attack a blue one. Queue Idle's future update, switch to Attack, and drain the old queue before checking the display. Read both the clip identifier and the actual rendered pose. Then run a control that leaves Attack active and advances its own timer. This catches a fix that suppresses all updates instead of rejecting only obsolete ones.
The FrameSprite technical guide and test fixture demonstrates the late Tk callback and cancellation behavior. If your preview controller uses a generation token, check it both before drawing and before scheduling the next tick. On close, force any queued updates to run and confirm that no drawing calls occur against the discarded preview. This lets the same fixture cover fast clip switching and teardown.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.