Pivot & Animation Previewer
Load a sheet, play it at the real frame size, and put the pivot where the character actually stands. Export the offset Godot needs.
frames array with rect objects. Without it, use the grid below. Load a sheet to start.
Preview
Why the pivot matters
The pivot is the point Godot uses for position, rotation, and flipping. If it is at the center of a tall sprite, the feet sink into the floor when the sprite flips. If it is at a corner, rotation orbits the character.
For a side-view character, bottom-center is the usual choice. For a top-down character, center. For UI, top-left.
What the offset means
AnimatedSprite2D draws its texture centered by default. If you want the pivot
at the node origin, the node needs an offset:
centered = true
offset = (cellWidth / 2 - pivotX * cellWidth,
cellHeight / 2 - pivotY * cellHeight)
For bottom-center on a 64×64 frame, that is (0, -32). The tool calculates both
the centered and top-left variants so you can use either node setup.
Using it with Godot
- Load the sheet and the frame JSON from the video tool, sheet maker, or fixer.
- Play the animation at the FPS you will use in game.
- Drag the crosshair to the character's feet (or the intended origin).
- Copy the offset into the
AnimatedSprite2D.offsetfield. - Generate the SpriteFrames .tres if you have not already.
FAQ
What pivot should I use for a side-view character?
Bottom-center: x = 0.5, y = 1.0. It keeps the feet on the ground when the sprite flips or rotates.
Why does the preview show an offset value?
Godot draws AnimatedSprite2D and Sprite2D centered by default. The offset is what you add to the node so the pivot sits at the node origin.
Does this change my sheet?
No. It reads the sheet and writes metadata. The PNG is untouched; export the JSON and apply the offset in Godot.
Can I use my own frame JSON?
Yes if it has a frames array with rect objects (x, y, w, h). The tool also accepts this site's JSON and a plain grid if you have no JSON.
Does it support per-frame pivots?
No. Godot uses one node offset for the whole animation; this tool follows that model. Per-frame pivots are a different pipeline and usually cause jitter.