How to make a pixel art explosion

Updated · Adib Khan

A pixel-art explosion: a white flash, an orange and red fireball, then grey smoke and sparks fading out
The explosion made for this page: eight frames, the first four shorter than a tenth of a second. Open it in the editor.

The shape of an explosion

Every explosion on a small sprite follows the same story, and you can tell it in about eight frames.

  1. Flash. A tiny, very bright core. White in the middle, yellow around it.
  2. Burst. The core grows into a rough ball. Yellow inside, orange at the edge.
  3. Fireball. Bigger again, with red now on the rim, and a few sparks flying out.
  4. Peak. The largest frame, with a dark outline starting to appear. Orange and red inside, a dark red and navy edge.
  5. Cooling. The middle empties as the fire burns out, the edge turns plum and grey, and the shape breaks up.
  6. Smoke. A broken ring of grey, some embers left.
  7. Wisps. A few grey specks, further out.
  8. Gone. Almost nothing is left, and the last frame is empty enough to loop.

The colour does the heavy lifting. The default palette has the whole ramp you need: white, yellow, orange, red, plum, dark grey and light grey. Colour follows heat from the inside out, so the centre is always the lightest colour in the frame, and the outside is always the darkest.

Draw an explosion of your own.Open the editor

Steps

  1. Start a canvas. Choose File, then New sprite, and pick 16 or 32. A square canvas is best, because the blast spreads in every direction. Leave a margin, since the peak frame should not touch the edge.
  2. Draw the flash in frame 1: a few white pixels, ringed with yellow. Keep it small.
  3. Duplicate with D and make the next frame bigger. For round shapes use the Ellipse tool, which has a filled option in the options bar, and draw the colours from the outside in: red first, then orange over it, then yellow, then white. Each new colour is a smaller shape than the one under it.
  4. Try a mirror mode. Click the Mirror button in the tool rail to cycle through modes. Radial 8 repeats whatever you draw around the centre in eight ways, which draws a whole burst of sparks from one stroke. Used alone it is too tidy, so break it up afterwards by hand: remove a few pixels and move a few.
  5. Cool it. From frame 5, erase a hole in the middle, shift the colours towards plum and grey, and knock out random pixels so the edge crumbles.
  6. Use the ghosts. Turn on onion skin (O). Each frame should be a little bigger than the one before it until the peak, and then the shapes break up and drift outwards.
The PixelFlipbook editor on the fourth frame of the explosion, zoomed in: an orange and yellow core inside a red fireball with a dark outline, with the ghosts of frames 3 and 5 tinted around it and eight thumbnails in the timeline from 50 ms to 140 ms
Frame 4, the peak. The timeline shows how the eight frames get longer towards the end.

Timing and speed

The first frames are the hit, so they should be fast. The explosion on this page uses 50, 60, 70 and 90 ms for the flash, burst, fireball and peak, then 90, 100, 110 and 140 ms for the cooling and smoke. That is just over 700 ms in all. The viewer sees the flash and then watches the smoke trail off.

Select a frame, and type its time in the Duration box beside the timeline. To set several together, select a range of frames, as in the picture, and use the clock button in the bar that appears. The dialog takes milliseconds or frames per second. The shortest a frame can be is 10 ms, though a GIF will not show anything faster than 20 ms in a browser.

The bottom of the PixelFlipbook editor with frames 1 to 4 of the explosion selected: a bar reading Frames 1 to 4 with buttons to set the duration, add a tag, duplicate, delete and clear, above the eight thumbnails
Frames 1 to 4 selected. The clock button in the bar sets their time together.

For a bigger blast, hold the peak frame for a few extra tens of milliseconds, or add a frame of screen shake in your game. For a small one, drop frames 3 and 4.

Colours and the palette

Work from a short ramp and resist adding extras. Seven colours is plenty: white, yellow, orange, red, plum, dark grey, light grey, plus a dark navy for the outline of the peak frame. If your game has its own palette, pick the closest colours to a hot-to-cold ramp from it. The palette pages list the colours of the palettes that ship with the editor, with hex codes you can paste, and the palettes guide explains how to swap one palette for another without losing the pixels.

Because the art is indexed, you can recolour a finished explosion in one move: change a swatch and every pixel that uses it follows. A green or blue version of the same animation, for acid or ice, takes a minute.

Common problems

Export it

An explosion plays once in a game, but a GIF always loops, so make the end of the animation quiet enough that the loop does not jar. Open File, then Export, and pick GIF for a share, or Spritesheet for an engine. Tag the eight frames "explode", and the JSON carries the name, so your code can ask for it by name. The sheet to GIF guide shows the other direction.

Open this explosion in the editor as your own copy and take it apart. Each time you open it you get a new project, and the original is not changed.