How to Make a Sprite Sheet for 2D Games (Godot & Unity)
Plan, create and export pixel art sprite sheets step by step: frame counts, grid layout, FPS, and importing animations into Godot and Unity.
What Is a Sprite Sheet and Why Do Games Use Them?
A sprite sheet is a single image that contains every frame of one or more animations, laid out on a regular grid. Instead of loading 40 separate PNGs for a character, your game loads one texture and shows a different cell of it each frame.
That makes sprite sheets faster to load, cheaper to render and much easier to organize. Every major 2D engine—Godot, Unity, GameMaker, Phaser—has built-in tools to slice a sheet into frames and play them back as an animation.
- One texture per character instead of dozens of files
- Fewer texture swaps, so better rendering performance
- Easy to swap, version and share with your team
Step 1: Plan Your Animations, Frame Counts and FPS
Before drawing or generating anything, list the animations your character needs and how many frames each one gets. More frames look smoother but cost more work and memory; pixel art usually looks best with fewer, well-chosen frames played at a modest frame rate.
Use these numbers as a starting point and adjust to your game's feel. Fast action games lean toward higher FPS; cozy or retro games often look better slower.
- Idle: 4–6 frames at 6–8 FPS
- Walk: 6–8 frames at 8–12 FPS
- Run: 6–8 frames at 10–14 FPS
- Attack: 4–8 frames at 10–16 FPS
- Hurt / death: 3–6 frames, often played once without looping
Step 2: Choose a Grid Layout and Cell Size
Every cell in a sheet should have the same size—for example 64×64—even if the character does not fill it. Keep the character's feet on the same baseline in every frame; if the feet move between cells, the animation will jitter in-game.
The most common layout is one animation per row. For top-down games with several directions, use one row per direction for each animation (for example Walk South, Walk East, Walk North). Leave 1–2 px of transparent padding around frames if your engine shows edge bleeding.
- Identical cell size for every frame
- Feet locked to one baseline across all frames
- One animation (or one direction) per row
- Optional transparent padding against texture bleeding
Step 3: Create the Frames—By Hand or With AI
The classic route is drawing every frame by hand in a pixel art editor, starting from key poses (contact and passing positions for a walk) and filling in the in-betweens. It gives you full control but can take hours per animation, per direction.
The faster route for game devs is generating animations from an approved character. In Spritearc you lock a character's identity once, open the Animations tab and generate idle, walk, attack or custom animations. Feet stay anchored across frames, and you can fix any single pixel live in the editor before exporting the finished sheet.
- By hand: full control, slow for large casts
- With Spritearc: animations generated from your locked character
- Foot-locked frames, so no jitter when the loop restarts
- Live pixel editor for last-mile fixes, with your team
Step 4: Test the Animation Before You Import It
Catching problems before they reach your engine saves a lot of re-importing. Drop your sheet into the free Spritesheet Viewer: it detects rows and columns automatically and plays the animation immediately.
Dial in the frame rate between 1 and 30 FPS, switch between Loop, Ping-Pong and Reverse, and step through frames one by one to check that the feet stay on the baseline and no frame pops out of place.
- Automatic grid detection with manual override
- 1–30 FPS with Loop, Ping-Pong and Reverse playback
- Frame-by-frame stepping to spot jitter and stray pixels
Step 5: Import a Sprite Sheet Into Godot 4
Copy the PNG into your project and make sure pixel art is not filtered: set Project Settings → Rendering → Textures → Default Texture Filter to Nearest. Add an AnimatedSprite2D node, create a new SpriteFrames resource in the Inspector and open the SpriteFrames panel at the bottom of the editor.
Click the "Add frames from sprite sheet" button, pick your PNG, enter the number of horizontal and vertical cells, select the frames for one animation and add them. Name the animation (for example walk_south), set its FPS and enable looping. Repeat for each row.
- Default Texture Filter → Nearest
- AnimatedSprite2D + SpriteFrames resource
- "Add frames from sprite sheet" → set horizontal and vertical cell counts
- Set FPS and looping per animation
Step 6: Import a Sprite Sheet Into Unity
Select the PNG in the Project window and set Texture Type to Sprite (2D and UI), Sprite Mode to Multiple, Filter Mode to Point (no filter), Compression to None, and Pixels Per Unit to your cell size, such as 64. Click Apply.
Open the Sprite Editor (included in the 2D Sprite package), choose Slice → Grid By Cell Size, enter your cell size and apply. Then select the frames of one animation in the Project window and drag them into the scene—Unity creates an Animation clip and Animator automatically. Adjust the frame rate in the Animation window.
- Sprite Mode → Multiple, Filter Mode → Point (no filter)
- Compression → None, Pixels Per Unit = cell size
- Sprite Editor → Slice → Grid By Cell Size
- Drag frames into the scene to auto-create the animation
Common Sprite Sheet Mistakes (and How to Fix Them)
Most broken animations come down to a handful of avoidable problems. Check these before blaming your engine.
- Jittering character: feet are not on the same baseline in every cell
- Blurry sprites: texture filtering is on—switch to Nearest / Point
- Lines from neighboring frames: add transparent padding and disable mipmaps
- Frames cut off: cell size or row/column count does not match the sheet
- Animation feels off: adjust FPS before adding more frames
Frequently Asked Questions
What size should a sprite sheet be?
The sheet size is simply cell size × columns by cell size × rows—for example 8 frames of 64×64 in one row is 512×64. Modern engines do not require power-of-two sizes, but keeping every cell the same size is essential.
How many frames does a walk cycle need?
Most pixel art walk cycles use 6 or 8 frames played at around 8–12 FPS. Retro-style games can get away with 4 frames.
Which file format should I use for sprite sheets?
Use PNG. It is lossless and supports transparency, so pixel edges stay sharp and backgrounds stay clean. Avoid JPG, which adds compression artifacts.
Can AI generate sprite sheets?
Yes. Spritearc generates animations from a character you have already approved, keeps the feet anchored across frames, and exports a ready-to-slice sprite sheet you can still edit pixel by pixel.