You drop a character on a tilemap and it looks pasted on. The feet touch the grass, but nothing says the body is standing on it. A small dark shape under the feet fixes that in one step, yet the first try often goes wrong: a shadow that is too big, too dark, too sharp, or a different shape for every sprite. This guide covers the three common ways to shadow a pixel art character and how to pick one.
The numbers come from the shadow sprites in our own character packs, which we measured pixel by pixel. The Godot settings were checked in Godot 4.7.2 by reading the default values of the nodes involved.
The three kinds of shadow
- Blob shadow: one small dark oval under the feet. It says only "this body is on the ground".
- Drop shadow: a shape cast to one side, usually a squashed copy of the body or a longer oval. It gives a light direction.
- Lit scene: lights and darkness drawn over the whole screen, so shadows come from where the lights are.
Most 2D games start with the blob. It costs one sprite per character, it never fights the art, and it reads well at small sizes. A drop shadow costs more because it must match the pose on every frame. A lit scene is the biggest step and only pays off when light is part of the game, as in horror, dungeons or night maps.
Blob shadows: size, shape and opacity
A blob shadow is a flat oval. Make it a little wider than the feet and keep it low. In our Top-Down Characters pack the shadow file is a 16x16 cell with an oval 10 pixels wide and 3 pixels tall, 22 pixels in total, in one flat colour (a dark blue-grey, RGB 27, 27, 38). It sits in the bottom three rows of the cell, which is where the characters' feet are, so it goes in at the same origin as a character sprite with no offsets. The pack also ships it at 2x and 3x, where the oval measures 20x6 and 30x9.
In the Isometric Characters pack the shadow is a 32x16 file with an oval 18 pixels wide and 10 tall (144 pixels, black). The README says to draw it at the feet point with its anchor at 16, 8, at about 35% opacity. The characters stand on a 64x64 cell with their feet at 32, 46, the centre of a ground diamond, so the oval and the tile diamond share a centre. Standing, the characters are 27 to 41 pixels tall, so the oval is about two thirds of the shortest character's height wide.
Three habits make blob shadows look right:
- Keep the shape a flat, squashed ellipse. In isometric art the 2:1 ratio of the tile diamond is a good guide: the oval above is 18x10, close to that.
- Draw it as a single flat shape, not a gradient, so it matches the hard pixels around it. Soften it with transparency, not with extra colours.
- Use partial opacity on the whole sprite. A fully opaque dark oval looks like a hole in the floor. About 35% is a good start for black, and you can go lower on dark tiles.

Setting up a blob shadow in Godot 4
In Godot 4 the simplest build is a Sprite2D for the shadow as a child of the character, drawn behind its parent. Two defaults matter. A new CanvasItem has show_behind_parent set to false, so you turn it on for the shadow, or give the shadow a lower z_index. And a node's modulate takes an alpha channel, so a Color(1, 1, 1, 0.35) on the shadow's modulate gives you the 35% without editing the image.
If the shadow lies on the ground and characters walk in front of and behind each other, check the draw order. With y_sort_enabled (false by default) on the parent, nodes lower on the screen draw later. A shadow that belongs to one character should stay inside that character's own node so the sort moves them together. A shadow left on a separate layer is sorted on its own, apart from the character it belongs to. Our walls and roofs guide goes through the same draw order problem for tall tiles.
Jumping, flying and floating
The blob shadow is also how the player reads height. When a character jumps, keep the shadow on the ground and move only the body up. Shrink the shadow a little and fade it as the body rises: the higher the body, the smaller and lighter the oval. Put them in separate nodes, with the body's local position carrying the height, and a bounce or a flying enemy needs no other change. Then a hit box can stay on the ground position and the art can float above it.
Drop shadows: when the light has a direction
A drop shadow shows where the light is. For a top-down or side-on game with a fixed sun, you can shift the oval to one side and stretch it a little. The cheap way is the same oval, offset by a pixel or two, and larger for taller sprites. The expensive way is a flattened copy of every frame, which means a second animation to keep in step with the walk cycle.
Our isometric characters help here because the feet point is the same on every frame and direction, and no frame has a baked shadow. You can offset a single oval along the light direction and it stays correct across all 8 directions and all the animations. The same holds if you want to drop the shadow completely at night: you hide one node instead of repainting sprites. The isometric character guide has the placement formula.

Lit scenes: shadows from lights
When the mood matters, you can darken the scene and add lights. In Godot 4 the pieces are a CanvasModulate for the darkness, PointLight2D nodes that use a light texture, and LightOccluder2D nodes that block them. Check one default before you wonder where the shadows are: PointLight2D has shadow_enabled set to false. Turn it on for the light, and add a LightOccluder2D to every wall or tree that should cast a shadow. Without the occluders there is nothing to cast one.
A lit scene still wants a blob under each character. A torch lights a character from one side, but the oval keeps them planted on the floor in the dark parts of the room. Keep the blob subtle, and let the lights do the drama.
Light textures are where pixel art needs care. A smooth gradient on a 16x16 world looks like a different game. The 2D Lights & Glow pack ships its textures in two styles for this reason: a pixel style with chunky cells and 6 flat bands, and a smooth style. It has 54 light textures (radial lights with 4 falloffs at 64, 128, 256 and 512 pixels, floor pools, spotlights at 30, 60 and 90 degrees, a flashlight beam, window shafts and god rays), 11 animated lights that loop, such as a torch, a campfire and a fluorescent tube that fails and comes back, and 6 darkness and vignette overlays at 320x180, 640x360 and 1920x1080.
The pack does not cast shadows from walls. It gives you the textures for the light nodes and blend modes your engine already has, and the engine and your occluders do the rest. Its Godot demo shows PointLight2D nodes with these files, a flashlight cone turned about its origin and an animated torch.

Which one to pick
- Platformer, RPG or farming game with bright daylight: a blob shadow under every character, about 35% opaque.
- Game with a fixed sun and tall sprites: the same oval, offset along the light direction.
- Horror, dungeon or night game: blobs plus lights, darkness and occluders.
- Characters that jump or fly: shadow on the ground, body in its own node, shadow shrinking with height.
If you have not chosen a camera yet, the camera views guide shows how each view treats the ground, and the ground decides how a shadow should be drawn. For isometric maps, the isometric tilemap guide for Godot 4 sets up the 32x16 TileSet the oval above is made for.
Checklist
- The shadow is wider than the feet and sits where the feet touch the ground.
- One flat shape, with opacity doing the softening.
- The shadow is in the character's node, so it moves and sorts with it.
- Jumping lifts the body, not the shadow.
- For lit scenes, shadow_enabled is on and every blocking object has an occluder.
All three packs can go in commercial games but their files can't be resold; see can I use game assets in a commercial game. They are in the Top-Down Characters, Isometric Characters and 2D Lights & Glow pages. If your game needs its own characters and shadows drawn to your camera, you can order a custom pack.