SpritePilot Blog

Practical articles on sprite sheets, pixel art animation and getting 2D art into a game engine, with code samples and examples made in SpritePilot. Subscribe with the RSS feed.

Most posts here start from a problem you hit while making a 2D game: frames that slide, a sheet that came with no notes on its frame size, thin lines between tiles, a character that jumps when it turns around. Each one explains why it happens, shows a fix you can test, and names the engine settings involved. Where a SpritePilot tool does part of the job, the post links to it.

They are written for people making their own games: solo developers, game jam teams, students, and artists who would rather draw than fight an import dialog. The basics need no particular engine, and the engine posts give the exact steps for the one you use.

Where to start

The reading paths below group the articles by the job in front of you, in the order we would read them. The full list, newest first, comes after them.

New to sprite sheets

Handed a sheet and not sure how it is laid out? Start here. These posts cover the numbers every engine asks for, the difference between a plain grid and a packed atlas, and how big one image can safely get before it causes trouble.

  1. How to Find the Frame Size of a Sprite Sheet
    Count, divide, check: the first thing to work out for any sheet.
  2. Sprite Sheet vs. Texture Atlas: What's the Difference?
    Read this before you pick an export format, because the two need different loading code.
  3. Find Swapped and Empty Frames in a Sprite Sheet Before You Import It
    A test sheet with planted faults, and how to catch each one before import.
  4. Trimming Transparent Pixels From Sprites: Smaller Sheets Without Jitter
    Trimmed frames can wobble in place; these are the offsets that keep them still.
  5. How Big Can a Sprite Sheet Be? Texture Size Limits, Memory and Power of Two
    Texture limits and memory, for when one sheet keeps growing.
  6. PNG, WebP or JPG for Game Sprites? File Size, Quality and Memory Compared
    Measured file sizes, and why JPG is a poor home for pixel art.

Getting a sheet into your engine

Pick your engine and read its post first. Each one goes from a finished sheet to an animation that plays in that engine. Then read the pivot post: a pivot in the wrong place is what makes a character jump sideways when it flips or changes frames.

  1. Godot 4 Sprite Animation: AnimatedSprite2D or AnimationPlayer?
    Godot 4: when to use AnimatedSprite2D or AnimationPlayer, and a SpriteFrames file you can drop straight in.
  2. Unity 2D Sprite Sheet Animation: From Sheet to Animated Character
    Unity 6: import settings, slicing in the Sprite Editor, clips, the Animator and a script, in that order.
  3. Phaser: Loading Sprite Sheets and Texture Atlases (and Animating Them)
    Phaser 3 and 4: frame numbers for a grid sheet, frame names for an atlas.
  4. Import a Sprite Strip Into GameMaker and Play It
    GameMaker: the strip naming convention, then the origin and collision checks.
  5. RPG Maker MZ and MV Character Sheets: Layout and Filenames
    RPG Maker MZ and MV: the three column character layout, and what the $ and ! in a filename each change.
  6. Sprite Pivot Points Explained: Center, Feet and Flipping
    Where the pivot goes in every engine above, and why it matters the moment a sprite flips.

Animating without an engine

Sometimes a sprite only needs to move on a web page or in a small Python game. These three posts do it with no engine at all, and each keeps the animation at a steady speed however fast the screen redraws.

  1. Animate a Sprite Sheet With CSS steps() Without Sliding or Skipped Frames
    CSS steps(): the end value that stops frames sliding, and sheets with more than one row.
  2. Sprite Sheet Animation in JavaScript With Canvas (No Engine)
    A canvas in plain JavaScript: time picks the frame, pixels stay crisp, frames can come from an atlas file.
  3. Sprite Sheet Animation in Pygame, Step by Step
    Pygame: an Animation class that keeps time, and sprite groups to draw everything.

Making animation feel right

These posts are about the motion itself, not the file it ends up in. Read the frame rate post first: most pixel art plays at a fraction of the game's frame rate, which changes how many frames are worth drawing at all. The rest work in any order.

  1. How Fast Should Pixel Art Animate? Choosing a Frame Rate
    Frame count, rate and duration, and when to hold one frame longer instead.
  2. How Many Frames Does a Walk Cycle Need? 4, 6 and 8 Compared
    Four, six or eight frames for a walk, and how to stop the feet sliding at your character's speed.
  3. Make Sprite Animations Loop Without a Hitch
    Find the hitch where a loop restarts: a doubled frame, ping-pong ends, easing in the wrong place.
  4. Squash and Stretch for Sprite Animation (with a Bouncing Ball)
    A bouncing ball drawn frame by frame, with the sums that keep its area the same.
  5. Onion Skinning: Animate Pixel Art Without Guesswork
    Key poses first, then the ghost of the last frame to check arcs and spacing.

Keeping pixel art crisp

Blurry sprites and seams between tiles usually have the same cause: something between your file and the screen is smoothing pixels it should leave alone. Settle the palette while you draw, then check scaling and tile edges before the art goes into the game.

  1. Limited Color Palettes for Pixel Art: Why They Help and How to Pick One
    Small palettes, hue shifted ramps and a grayscale check, with DB32 as a place to start.
  2. How to Scale Pixel Art Without Blurring It
    Nearest neighbor and whole number scales, in CSS, on a canvas and in engines.
  3. Why Lines Appear Between Your Tiles (and How to Get Rid of Them)
    Four fixes for thin lines between tiles, from filtering to padding and extrusion.

Converting and cleaning up art

Art doesn't always arrive as a tidy sheet. It might be a GIF, a screen recording, or an old sheet on a magenta background with a checkerboard drawn into it. These posts show what each conversion keeps and what it loses.

  1. GIF to Sprite Sheet: Keep Uneven Frame Timing
    Keep a GIF's uneven delays instead of flattening them to one frame rate.
  2. MP4 to Sprite Sheet: Keep Fast Motion in the Sampled Frames
    Choose a sampling rate that doesn't miss a quick hit in a video.
  3. GIF or Video to Sprite Sheet Without a Huge File
    The arithmetic behind enormous sheets, and the settings that bring them down.
  4. Removing a Solid Background From Sprites Without a Halo
    Where colored fringes come from, what tolerance and soft edges can and can't do, and what to try when a checkerboard is drawn into the sheet.

Free assets and how to use them

SpritePilot gives away sprites, sounds, a font and backgrounds under CC0, so you can put them in any game, commercial ones included, without credit. The packs themselves are on the Free Game Assets page; the posts here look at how some of those assets were drawn and how to use them in a level.

  1. How to Animate Pixel Art Pickups: a Spinning Coin, a Gem and a Beating Heart
    How a spinning coin, a glinting gem and a beating heart were animated, frame by frame.

Every article, newest first