A campfire is one of the first animations most pixel art games need, and one of the easiest to get almost right. It flickers nicely for two seconds, then every time the animation wraps there is a small hitch: a spark vanishes, a tongue of flame snaps back, the whole fire seems to blink. Players may not name it, but they notice it, because a fire sits on screen for minutes while they read a sign or rest at a save point.
This guide explains where that jump comes from, how to build a fire loop that has none, and how to set it up in Godot 4 so it stays crisp. The numbers come from the Campfire preset of our Particle FX Baker and from Godot 4.7.2, where we checked the settings mentioned here.
Why a fire loop jumps
Most fire animations start as particles: small blobs that are born at the bottom, rise, shrink and change colour until they die. Whether you draw them by hand or let a program simulate them, the trouble is the same. The fire you see on the last frame is made of particles at different ages. Some were born a moment ago, some are about to die.
When the animation wraps, frame 1 has to show the same particles one step older. If frame 1 was drawn as the very start of the effect, it shows a different set: particles that were still alive at the end are missing, and particles that were only just born at the start appear out of nowhere. That difference is the jump.
Two things cause it, and you need to fix both:
- **Random spawning.** If every second of the effect births particles at new random times, the particles of the next loop are not the particles of this one, so the end can never match the start.
- **A cold start.** Even with a schedule that repeats, frame 1 of a recording that starts at time zero has no particles from the loop before it. A fire that has been burning for a while always has old particles in it.
How to build a loop that never jumps
The fix is to make the fire periodic. Decide the loop length first, for example 2 seconds. Then plan the births so the schedule repeats exactly every 2 seconds: the same particles, at the same moments, with the same paths, every loop.
Then draw each frame as if the fire had already been burning for a full loop. A particle born at 1.7 seconds that lives 0.6 seconds is still alive at 0.1 and 0.2 seconds of the next loop, so frames 1 to 3 must draw it near the end of its life. Seen this way the loop is a circle, not a line: every particle that crosses the end of the loop also crosses its start.
The Particle FX Baker does this for every looping preset. Its spawn schedule repeats every loop, and it draws the particles of the loop before as well, so the last frame flows into the first like any other step. The Campfire preset is 24 frames of 64x64 pixels at 12 frames per second, a 2-second loop.

How to check a loop
Watching the animation on repeat at its real speed is the first test, but a small jump hides well at 12 frames per second. A number helps. Count how many pixels change from one frame to the next for every pair of frames, then do the same for the last frame and frame 1.
In a clean loop the step from last to first looks like any other step. In the Campfire preset, 7.3% of the pixels change from the last frame to frame 1, against 6.5% for an ordinary step. A loop that jumps shows one step far bigger than all the others. The Baker also has a loop-check view that draws the last frame under the first, so you can see the difference instead of counting it.
Frames, speed and size
- **Speed:** 12 frames per second suits most pixel art effects and is what our effect packs use, so effects sit well next to hand-animated characters. Fire can go up to 16 or down to 8 for a slower, heavier look.
- **Length:** a 2-second loop of 24 frames is long enough that the eye stops looking for the repeat. Shorter loops work for a candle, which barely moves.
- **Size:** draw the fire at your game's own pixel size. A 64x64 campfire next to a 16x16 character reads as a bonfire; a torch on a wall needs far fewer pixels. Scale the whole game up later, in whole steps only.
- **One-shot effects** are the opposite case: an explosion should not loop at all. It should end on the frame where the last particle dies. The Baker's Small explosion preset is 8 frames of 48x48 at 12 fps and stops there.
Colours that read as pixel art
Soft particles that fade smoothly look like a different game next to crisp sprites. Three rules keep fire in the same style as everything else on screen:
- **Hard colour bands.** Fire is a ramp from a dark edge to a bright core: dark red, red, orange, yellow, nearly white. The Baker's heat colour mode adds the particles up into heat and cuts it into hard bands, so where flames overlap the core gets hotter instead of blurrier.
- **Hard alpha.** Every pixel is either solid or empty. Half-transparent pixels turn grey or muddy over a dark background. If you want a fade, use a dither pattern instead (the Baker has Bayer 2x2, 4x4 and 8x8).
- **Your palette.** Lock the effect to the palette of your game, or to the effect's own few colours, so no stray in-between shade appears.

Setting it up in Godot 4
A fire loop in Godot 4 is an AnimatedSprite2D with a SpriteFrames resource. A few settings decide whether it looks right:
- **Filter:** a new Godot 4.7 project draws textures with Linear filtering by default, which blurs pixel art. Set Project Settings, Rendering, Textures, Canvas Textures, Default Texture Filter to Nearest, or set the node's Texture Filter to Nearest.
- **Speed:** a new SpriteFrames animation plays at 5 frames per second. Set it to the speed the sheet was made for, 12 for the Campfire, or the flicker turns into a slow wobble.
- **Loop:** keep Loop on for fire, torches and candles, and turn it off for explosions and hits.
- **Position:** place the sprite so the bottom of the flames sits on the logs, not the centre of the frame on the floor. The node's Offset moves the picture without moving the node.
The Baker's Godot export writes the SpriteFrames .tres and an AnimatedSprite2D scene with these already set: the speed, the loop and nearest filtering. We imported its exports in Godot 4.7.2, loaded every SpriteFrames and rendered the scenes to check them.
Make the fire light the scene
A fire that gives no light looks painted on. A flickering glow on the ground around it does more for the mood than extra flame frames. Our 2D Lights & Glow pack has 11 animated lights, including a torch, a candle and a campfire with rising embers, in a crisp pixel style and a smooth style, and a small Godot 4 demo that uses them with PointLight2D nodes.
If you would rather not make the fire at all, the Pixel VFX pack has a looping fire among its 20 effects, as 32x32 strips at 12 fps with a JSON of frame sizes and speeds. For rain, snow and fog the same loop rules apply, with one more twist: the effect also has to tile, which we cover in seamless weather for 2D games. And if you are still deciding between engine particles and baked sprite sheets, particle effects in pixel art: make or buy compares the options.
A short checklist
- Pick the loop length first and repeat the spawn schedule exactly every loop.
- Draw every frame as if the fire has already burned for one full loop.
- Check that the step from the last frame to the first is no bigger than the others.
- Use hard colour bands, hard alpha and your game's palette.
- In Godot: Nearest filtering, the sheet's own speed, loop on, and the flames' base on the logs.
What you make with the Particle FX Baker 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. Need a fire, a spell or a whole effect set drawn for your game instead? Order a custom pack.