8 Direction Sprites: Rotate Pixel Art From One Model
Make 8 direction sprites without drawing every angle: turn one model, keep one pivot and the light in place, then pick the right frame in Godot 4.

Your top-down game has a cart, a cannon, a tank and a crate the player can push. Each one has to face eight ways. So you draw it facing down, then up, then sideways, and then the diagonals, which take the longest. By the third object the frames no longer match: the cart is a pixel wider on the diagonal, the shading has moved, and the wheels changed colour.
The shortcuts don't save you. Rotate the sprite in the engine and at 45 degrees the outline breaks into stairs. Mirror the left-facing frame to get the right one and the light jumps to the other side. And when the frames don't share a size and a centre, the object hops a pixel every time it turns.
This guide covers how many directions to make, one frame and one pivot, light that stays put, and the frame order, with a Godot 4 script that picks the right frame. Then a sprite rotation tool, the 3D Sprite Rotator, does it from one model. You can try it here while you read.
4, 8 or 16 directions
Count the frames before you choose. A still object costs one frame per direction, but every animation multiplies: a 6-frame walk is 24 frames in 4 directions, 48 in 8 and 96 in 16.

- 4 directions fit movement on a grid, where things turn only at corners.
- 8 directions fit free movement across open ground: a player, enemies that chase, a vehicle off the road.
- 16 directions fit things that turn slowly, like a tank hull, a turret or a ship, where a 45 degree jump shows.
- 6 or 12 fit hex maps.
One frame size, one pivot
Every frame in the set needs the same size, and the object's pivot has to sit on the same pixel in all of them. A long object seen on the diagonal is wider than it is from the side, so a cell drawn to fit the side view cuts the corners off. And if each frame is centred on its own picture, the object slides a little each time it turns.

The pivot is the point on the ground under the middle of the object. Put it at the node's origin and two things work: the object turns in place, and Godot's Y Sort puts it behind or in front of other things by where it stands.
The light stays, the object turns
Pick one light direction for the whole game and keep it. When a cart turns from facing left to facing right, the side it shows changes, but the lit side of the screen doesn't. Rotated and mirrored frames carry their shading with them, so the light turns with the object.

Rendering from a model fixes it: the sun sits in one place on the screen and every frame is lit from there. Keep the sun's numbers the same for every object in a set and the cart, the cannon and the tank match.
Which way is frame 0
Every sheet has its own order, and most turning bugs start here. In a sheet from the 3D Sprite Rotator, frame 1 looks at the model's front: the object faces the camera, which is south on the screen. Clockwise goes south, west, north, east, so an 8-angle sheet runs s, sw, w, nw, n, ne, e, se. Counter-clockwise runs south, east, north, west.

Godot counts from somewhere else. Vector2.angle() is 0 for a vector pointing right, and because Y points down in 2D the angle grows clockwise on the screen: Vector2.DOWN.angle() is PI / 2. Feed velocity.angle() straight into the frame number and every frame is a quarter turn off: the player walks right and the cart faces the camera. Take a quarter turn off first.
Pick the frame in Godot 4
The full tool's Godot 4 export is a ZIP with the sheet, a SpriteFrames .tres and an AnimatedSprite2D .tscn. Unzip it into your project and open the scene: it plays the turn, its filter is already Nearest, and its origin is the point under the model. The .tres holds an animation named "turn" with every frame, plus one single-frame animation per direction, named s, sw, w and so on.

Attach this script to that AnimatedSprite2D and call face(velocity) from your character every physics frame:
extends AnimatedSprite2D
const DIRS := ["s", "sw", "w", "nw", "n", "ne", "e", "se"]
func face(direction: Vector2) -> void:
if direction.length_squared() < 0.01:
return # standing still: keep the last facing
var turn := (direction.angle() - PI / 2) / TAU
play(DIRS[wrapi(roundi(turn * DIRS.size()), 0, DIRS.size())])
We ran it in Godot 4.7.2 on eleven directions, from straight right to a steep up-right: each one played the right animation, and a character standing still kept its last facing.
Playing by name has a bonus: the order of the sheet stops mattering. An 8-angle sheet that starts at 45 degrees, or turns counter-clockwise, has the same eight names in another order. For 16 angles, list the names in this order: s, ssw, sw, wsw, w, wnw, nw, nnw, n, nne, ne, ene, e, ese, se, sse.
A 4-frame PNG from the free demo works too. Add it to a SpriteFrames with Add frames from sprite sheet, set Horizontal to 4 and Vertical to 1, leave the animation stopped and set the frame yourself:
var turn := (direction.angle() - PI / 2) / TAU
frame = wrapi(roundi(turn * 4), 0, 4)
In our 4.7.2 check, down gave frame 0, left 1, up 2 and right 3: south, west, north, east. Set Texture > Filter to Nearest on the node so the pixels stay sharp.
The fast way: the 3D Sprite Rotator
The 3D Sprite Rotator builds one model and renders every angle from it:
- Make the model. Draw a front, a side and a top, or start from a sample. Each face shows its own drawing, so a square angle gives your drawing back pixel for pixel. Or paint the voxels in slices, or with the 3D brush on the turntable.
- Read the carve report. Pixels a view draws that another view cuts away are marked red and counted, so nothing vanishes unseen.
- Pick the camera. One click for Side 0, 2:1 iso, True iso, Top-down 3/4, High or Down 90. Elevation 30 with a 45 degree start is 2:1 pixel isometric, and a 4-angle sheet then faces sw, nw, ne and se. Choose true 3D, or a sprite stack where each layer sits one pixel up.
- Light it. The sun stays on the screen while the model turns, and its left-right and height are numbers you can type. Add a 1 to 3 px outline, and lock the palette to N colours shared by every angle.
- Pick the angles. 4, 8, 16 or any count up to 64, a start angle and a direction.
- Save. "Smallest that holds every angle" gives every frame one size with the model's axis in the exact middle. Cleaner edges cast 4 or 9 rays per pixel and the majority colour wins, so the sheet never blurs and never gains a colour.
What the demo saves
Try it here. The free demo takes models up to 32 per side, makes 4 angles and saves PNG sprite sheets. It has the front, side and top views, slices, the 3D brush, light, outline, the N-colour and model palette locks, and 5 of the samples.
The full tool goes to 128 per side and adds 8, 16 or any count up to 64 angles, the sheet JSON, every frame in a ZIP, a GIF, the Godot 4 export, .vox in and out, a slices sheet, project files, back, left and bottom views, our pack palettes, palette files, dither and all 15 samples.
Every Gridwright asset pack, made to fit together, and all 44 tools for the fiddly work, with every new release, for $17 a month. Try it in your own game first: 3 days for $1 with every tool and up to 10 packs. Cancel any time.
Start: 3 days for $1 See everything it includesWhen the turn looks wrong
- It hops when it turns. The frames differ in size or centre. Export them all at one frame size.
- Walking right shows the front. Godot's angle starts at east. Take a quarter turn off before you pick the frame.
- The shading swaps sides. The frames were rotated or mirrored, or the sun turns with the model. Keep it on the screen.
- Thin parts blink out at some angles. Set Thin parts to "Keep thin parts".
- It looks blurry. Set the filter to Nearest.
Turn your first object today
Open the 3D Sprite Rotator, draw three views of something your game needs and save 8 angles. For a street full of traffic in the same style, Top-Down Vehicles has 28 vehicles in 8 directions, each rendered from one model with the light at the top left. Both are part of Gridwright: 44 tools and 150 asset packs, 3 days for $1, then $17 a month.
Every Gridwright asset pack, made to fit together, and all 44 tools for the fiddly work, with every new release, for $17 a month. Try it in your own game first: 3 days for $1 with every tool and up to 10 packs. Cancel any time.
Start: 3 days for $1 See everything it includes