sprite ai
Test what happens along a Sprig dash before picking its animation
A dash and a teleport can move an actor the same distance on an open row. They need different sprite cues when the path crosses a solid tile or a floor switch. Define which intermediate cells the action visits before deciding where to display its arrival pose.
Check position and arrival cues independently
Create a horizontal three-step movement fixture with an unblocked destination. In one copy, put a solid wall in the second cell of the path. In another, replace it with a passable floor switch. Log each accepted step and start the final animation at the actor’s actual endpoint. The wall case should stop before the obstacle and select the blocked pose. The switch case should trigger its action exactly once if the dash visits that cell. Test teleport separately using the same destination and expect only its destination event if that is the intended design.
The technical guide and test fixture documents a standalone Sprig 1.1.3 witness in which a direct two-cell assignment succeeds across a solid intervening tile. A one-cell move into the wall fails. Record whether your movement routine checks each accepted step so the sprite sheet’s blocked and arrival poses reflect gameplay.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.