You want a car, a boat or a crate in a top-down game that turns smoothly and looks solid, but drawing it at 16 angles by hand is days of work, and a real 3D model doesn't match your pixel art. Sprite stacking sits between the two. The object is stored as a pile of flat pixel art slices, and the game draws them on top of each other, each one pixel higher than the one below. Turn every slice by the same angle and the pile reads as a small 3D object that can face any way.
This guide explains how the trick works, how to make the slices without drawing each one from scratch, when a pre-rendered sprite sheet is the better choice, and how to draw a stack in Godot 4 with nothing but a few lines in a node. The examples use the Racing car sample of our 3D Sprite Rotator: 16 voxels wide, 30 long and 11 high.
How sprite stacking works
Think of the object cut into horizontal layers, like a loaf of bread lying on the table. Each layer is one pixel thick and is drawn as seen from straight above. The car is 11 layers: the tyres and the underside at the bottom, the doors and windows in the middle, the roof stripe at the top.
To show it, the game draws layer 1 at the object's position, layer 2 one pixel up, layer 3 two pixels up, and so on to layer 11. With no turn, you see the roof on top and a strip of each lower layer peeking out below it, which gives the side its height. Now turn every layer around its own centre by the same angle. The layers still sit one pixel apart on screen, so the side that faces the camera grows and shrinks as the car turns, the way a real side would.
- **Any angle:** the turn is a number, not a frame, so a car can steer by 3 degrees at a time.
- **Small files:** 11 slices of 16 x 30 pixels is the whole car, a 176 x 30 picture.
- **The cost is draw calls:** every object draws one sprite per layer. Eleven per car is fine; hundreds of tall objects on screen at once need care.
- **Rotated pixels:** at angles that aren't multiples of 90 degrees the pixels turn too, so edges go jagged. That look is part of the style, but it isn't clean pixel art.
Sprite stack or pre-rendered sheet?
The other way to show a turning object is to render it once at a fixed number of angles and save every angle as its own frame. The game then picks the frame closest to the direction the object faces. Our guide on 8 directions vs 4 directions covers how many frames a game really needs, and top-down car sprites covers the turning frames of vehicles.
- **Pick a sprite stack** when objects turn freely and often (racing, boats, top-down shooters), when the camera itself turns, or when you want many objects from little drawing.
- **Pick a pre-rendered sheet** when every frame must be clean pixel art with an outline and light, when the object only faces 4, 8 or 16 ways, or when the game has to draw a lot of them cheaply: one sprite per object instead of one per layer.
- **Mix them:** many games stack the player's car and use sheets for the scenery around it.
One model can give you both. The 3D Sprite Rotator saves the same model as a slices sheet for stacking, and as a sprite sheet of 4, 8, 16 or up to 64 angles with light, outline and the same pivot in every frame. Its turntable also has a sprite stack mode, so you can see how the stack will look before you write any code.

How to make the slices
Drawing 11 layers one by one in a paint program is slow, because you can't see the object while you work. Two ways are faster.
- **Paint the layers with the model beside you.** Pick a layer, paint it with the layer below showing faintly, and watch the model turn next to it. Copy a layer up and change only what differs: car doors are the same for four layers.
- **Carve it from three drawings.** Draw the object from the front, the side and the top. A voxel exists wherever all three drawings say it can, which carves the rough shape at once. Then turn it into voxels and paint what outside views can't know, such as the inside of a mug.
- **Keep the slices small.** Every layer is one pixel of height, so 8 to 16 layers is plenty for a crate or a car. A 34-layer cottage looks great but draws 34 sprites.

Lay the slices out in one picture
Game engines are happiest with one picture per object. The usual layout is a single row: all slices the same size, side by side, with no gaps. The Rotator saves it that way, bottom layer first and each slice seen from above, and puts the slice size in the file name, so car_slices_16x30.png is a row of 16 x 30 slices. The same file opens again in the tool, so you can change the car later and save it over.
- **Bottom layer first**, so layer i sits at x = i times the slice width.
- **Every slice the same size**, even when the top layers are mostly empty. The empty pixels cost nothing and keep the maths simple.
- **The object's centre in the centre of the slice**, so it turns around the middle and not around a corner.
Drawing a stack in Godot 4
In Godot 4 a stack needs no special node. A Node2D with a script that draws its own slices is enough. We wrote the setup below and ran it in Godot 4.7.2 with the Racing car's slices sheet. At a turn of 0 it matched the layers pasted on top of each other pixel for pixel (0 of 508 drawn pixels differed), and at 45 and 90 degrees it drew a car turned on the road.
- **Give the node the slices texture and the slice count** (11 for the car) as exported variables, and a turn angle in radians.
- **In _draw(), loop over the slices from the bottom.** For slice i, call draw_set_transform with a position of (0, -i) and the turn angle, then draw_texture_rect_region with the slice's region of the texture, x = i times the slice width, placed so its centre is on the node.
- **Set the node's texture_filter to Nearest.** A new Godot 4 project draws textures with Linear filtering, which blurs every layer.
- **When the angle changes, call queue_redraw()**, or the node keeps the old picture.
- **Sort stacks by their base.** Put moving stacks under a node with Y Sort enabled and keep each node's origin at the object's footprint, so a car behind a crate draws behind it.
If the camera turns too, give every stack the camera's angle added to its own, and turn the ground the same way. That is the classic sprite-stack look: the whole world swings around the player while every crate and tree keeps its height.
Where stacks fit with flat tiles
Stacks look best standing on flat ground drawn in the same pixel size. A 16x16 top-down tileset under 16-pixel-wide cars keeps one pixel scale across the screen. For a space game, the parts of Modular Spaceships sit on the same 16x16 grid and come with a Ship Builder, so the hulls you stack or turn match the rest of the fleet.
A short checklist
- Decide first whether objects turn freely (stack) or face a few fixed ways (pre-rendered sheet).
- Keep the layer count low: one layer is one pixel of height.
- Save the slices as one row, bottom layer first, every slice the same size.
- Draw slice i at (0, -i), turned around its own centre, with Nearest filtering.
- Sort stacks by the base of each object, not by its top.
What you make with the 3D Sprite Rotator is yours for any game, commercial ones too; the tool itself may not be shared or resold. For the packs, see can I use game assets in a commercial game. If you need models or packs drawn for your own game, you can order a custom pack.