GAMES // TOWER DEFENSE FIRE

Fire effects for a tower defense game

In tower defense, fire is usually a damage zone: your flame tower or fire bomb sets a patch of the path burning for a few seconds. Use a 2 s fire loop, play it for exactly as long as the burn lasts, size it to the zone, and use a tall fire whirl for a tower's special attack.

  • 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 // BURN ZONES

A loop with a fixed length

A burning patch that lasts 6 s is the 2 s fire loop played three times. The compile blends its last frames into its first, so the repeats do not show. Start it when the bomb lands, run it for the zone's duration, then shrink it away over half a second so the player sees the damage end.

The fire is about 1.5 m across at the base. Several fires side by side make a line of burning ground along the path; give each a random start in the loop so they do not pulse together.

burn_zone.gd
extends Node3D

const FIRE := preload("res://fx/fire.tscn")

func burn(at: Vector3, seconds: float) -> void:
	var fx: Node3D = FIRE.instantiate()
	add_child(fx)
	fx.global_position = at
	var tween := fx.create_tween()
	tween.tween_interval(seconds)
	tween.tween_property(fx, "scale", Vector3.ONE * 0.01, 0.5)
	tween.tween_callback(fx.queue_free)

02 // SPECIAL ATTACK

A fire whirl for the big ability

The fire whirl compile spins flames into a column about 7 m tall and 4.4 m wide, a 2 s loop. Use it where the player should see a tower's special attack from anywhere on the map, such as a firestorm on a choke point.

From a camera 30 m away the whirl is about 165 px tall on a 1080p screen. A ground fire scaled down to fit a small zone is well under that, so it can use export.tile_px = 128.

Burning patches overlap on a crowded path, and each overlapping transparent pixel is drawn again (overdraw). Keep the zones short, or emit them from one GPUParticles3D made with set: ["node=particles"].

03 // REAL OUTPUT

Ground fire and fire whirl

Both loop every 2 s. The whirl is the taller of the two at 7.1 m.

FIRE_WHIRLFINAL
First frame of the fire_whirl bake
Fire whirl, 4.4 x 7.1 m, compiled with Spatial Compiler. Spec →

05 // FAQ

Tower defense fire questions

All questions →

README.TOWER_DEFENSE_FIRE_EFFECT
How do I make fire point in the direction of a tower's attack?

Aim only the tower's projectile or stream at the target and keep the burning ground upright with its origin on the path.

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

The compiled simulation already includes that cooling color gradient, so shrink or hide the scene to end a burn zone.

How do I add turbulence or noise movement to a tower defense fire in Godot?

Compile it in using solver.turbulence and solver.swirl so the motion lives in the frames and the shader simply plays them.

What flame effect fits a flame tower in a tower defense game?

Use the fire example for burning ground patches and fire_whirl for a tall special attack, both as 2 s loops in Godot.

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 →