Custom Pixel Pet Paw Lifts: Keep the Shadow on the Anchor
Lift a custom pixel pet's paw without floating the shadow: lock it to the ground anchor, keep the body root planted, and export on a fixed canvas.
A custom pixel pet raises one paw, and the whole character looks like it is floating. The paw moved up two pixels, the body moved up one, and the shadow followed both. The fix is not a smaller lift. It is a different attachment rule: the shadow belongs to the ground anchor, not to the paw and not to the frame's bounding box.
Separate the three positions
A paw-lift frame has three positions that are easy to confuse:
- Ground anchor: the fixed point where the pet meets the floor, for example (16, 27) on a 32×32 canvas.
- Body root: the registration point for the torso and planted legs. Keep it on the anchor unless the whole pet actually jumps.
- Paw position: a local offset inside the body. It can rise while the root stays put.
Draw the shadow as its own layer, centered on the ground anchor, so it stays attached to the floor rather than to the paw. Do not parent it to the paw. If the paw lifts, the shadow may get slightly narrower, but its center does not travel upward.
Worked example: a 32×32 paw lift
Inputs: 32×32 canvas, ground anchor (16, 27), contact shadow ellipse 11×3 centered at the anchor, front paw at (11, 24), and a three-frame lift of 0, 2, and 4 pixels.
- On frame 1, draw the paw at (11, 24). Keep the shadow at center (16, 27), full 11-pixel width.
- On frame 2, move only the paw and the lower-leg pixels up 2 pixels. Redraw the joint so the leg stays connected. Keep the shadow center at (16, 27); reduce its width to 9 pixels and set opacity to about 80%.
- On frame 3, move the paw up 4 pixels. Keep the same shadow center, reduce width to 7 pixels, and set opacity to about 65%.
- If you want a one-pixel chest lift, move the torso and head only. Leave the planted feet, body root, and shadow untouched.
Outcome: the paw rises, the shadow softens, and the anchor never moves. At 1× the pet still looks planted; at 4× the shadow center lines up with the same floor pixel in all three frames.
The constraint that changes the export
Per-frame trimming will defeat this setup. When the paw lifts, the visible bounding box changes, so an exporter that crops each frame to its content will shift the canvas and make a correctly locked shadow appear to slide. Disable per-frame trim, or pad every frame back to the full 32×32 canvas before export. This is the same registration discipline covered in the sprite-sheet checklist, and it is easier to catch in a crisp PNG preview at 1× and 4×.
Check the anchor, not the paw
Put a temporary crosshair on (16, 27) and step through the frames. The crosshair should sit at the shadow's center every time. If it does, the paw can lift as far as the leg allows without the pet looking airborne.