GUIDE // GODOT 4

How to loop a fire sprite sheet in Godot 4 without a pop

You need a sheet whose last frame flows into its first, played with looping on and nothing restarting in sync. In Godot 4 that means Loop on in AnimatedSprite3D or Particles Anim, Explosiveness at 0 and some Preprocess time on the emitter. Ask your agent for a looping fire and the sheet comes already blended at the wrap.

  • Godot 4 Available
  • Unity Manual setup
  • Unreal Engine Manual setup
  • Roblox Studio Manual setup
  • three.js Available

A draft compile is from $0.05, and new accounts start with $5 of usage.

FIREFINAL
First frame of the fire bake
Fire, 4.1 x 7.0 m, compiled with Spatial Compiler. Spec →

01 // WHY IT POPS

Where the pop comes from

  • If the sheet's last frame does not lead into its first, the flame jumps at the wrap, and no engine setting fixes that.
  • With Explosiveness above 0, a whole batch of particles is born and dies on the same frame, so they all restart together.
  • An emitter that starts empty grows the fire from nothing for one lifetime after the scene loads. Preprocess runs that time before the first frame.
  • A particle that ends at full opacity blinks out at its brightest. Fade alpha to 0 at the end of the Color Ramp.

02 // HOW TO

Loop one campfire with AnimatedSprite3D

For a single fire in one spot, an AnimatedSprite3D plays a looping sheet with fewer settings than particles.

  1. Add an AnimatedSprite3D and create a new SpriteFrames resource in Sprite Frames.
  2. In the SpriteFrames panel, click Add Frames from Sprite Sheet, pick your sheet and set Horizontal and Vertical to the grid, 8 and 8 for 64 frames.
  3. Select all frames in order and add them.
  4. Set the animation speed to frames divided by loop length, 32 FPS for 64 frames over 2 seconds, and turn on Loop.
  5. Turn on Autoplay on Load for the animation, set Billboard to Enabled or Y-Billboard, and leave Shaded off so scene light does not darken the flame.
  6. Run the scene and watch the wrap for a full minute. If it still jumps, the sheet itself does not wrap.

For a fire built from many particles, keep the sheet looping in Particles Anim > Loop, set Explosiveness to 0 so births spread over the lifetime, and set Preprocess to one lifetime.

03 // WITH SPATIAL COMPILER

Get a sheet that already wraps

Ask your agent for a looping fire. With export.loop = true the compile blends its last frames into its first (loop_blend_frames, 8 by default and 12 in the example fire) after a warm-up, so the flame is already burning in frame one. The report your agent reads flags a visible seam and names the setting to change.

In Godot 4 your agent drops the fire into a scene for you, and it loops on its own when it plays. The example fire is a 2 second loop of 64 frames, about 1.5 m across.

04 // REAL OUTPUT

Fire loops from the example compiles

All three are 2 second loops; watch the wrap.

FIRE_WHIRLFINAL
First frame of the fire_whirl bake
Fire whirl, 4.4 x 7.1 m, compiled with Spatial Compiler. Spec →
WINDOW_FIREFINAL
First frame of the window_fire bake
Window fire, 3.9 x 4.7 m, compiled with Spatial Compiler. Spec →

06 // FAQ

Fire loop questions

All questions →

README.GODOT_LOOP_FIRE_SPRITE_SHEET
How do I make a fire particle system loop without visible popping in Godot?

Set Explosiveness to 0, give the emitter Preprocess time and fade each particle out at the end of its Color Ramp.

How do I make fire particles rise and flicker instead of moving straight?

Give the process material a small upward velocity and turn on Turbulence so each particle wanders while the looping sheet supplies its own flicker.

How do I make fire particles fade from yellow to orange to transparent?

Add a Color Ramp to ParticleProcessMaterial from yellow to orange to zero alpha and enable Vertex Color Use as Albedo on the draw material.

How do I build a campfire effect in Godot?

Place one looping fire sheet on a billboard at the fire pit with an OmniLight3D above it and a thin smoke loop rising overhead.

How many frames does a looping fire sheet need?

Multiply loop seconds by frames per second; the example fire loops 2 seconds across 64 frames, playing at 32 frames per second.

Compile your first effect

You pay per compile and see the price before it runs. New accounts start with $5 of usage.

All effects, guides and explainers →