GAMES // TOWER DEFENSE SMOKE

Smoke effects for a tower defense game

In tower defense the player has to see every enemy on the path, so smoke should mark events without covering the lane. Play a 5.0 s smoke column once when a tower is destroyed, and loop a 4 s smoke plume over your base when its health runs low, placed where it rises away from the path.

  • 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.

SMOKE_COLUMNFINAL
First frame of the smoke_column bake
Smoke column, 8.2 x 9.9 m, compiled with Spatial Compiler. Spec →

01 // READABILITY

Smoke that leaves the path clear

From a tower defense camera that looks down at an angle, a column of smoke projects up the screen from its base and covers whatever lies behind it. Keep the lane out of the strip of screen above each smoke source, and scale smoke down where the path bends close to a tower.

The smoke column grows to 8.2 x 9.9 m and thins away over 5.0 s, so it marks a lost tower and then clears by itself.

02 // BASE HEALTH

A plume as a health warning

A thin plume over the base tells the player it is in trouble without a pop-up. Start the 4 s plume loop at a third of base health and scale it up as health drops further.

The plume leans with a precomputed 1.2 m/s wind. Point the lean away from the path, which works when your camera does not rotate, because a camera-facing quad keeps the lean on the same side of the screen.

03 // HOW TO

Play smoke when a tower falls in Godot 4

  1. Ask your agent to compile smoke_column and smoke_plume at final quality into res://fx/ and call wire on each.
  2. When a tower is destroyed, instance the column at its base and free it when its 6 s clip ends.
  3. When the base's health drops under your threshold, instance the plume at the base and leave it on autoplay.
  4. If many towers can fall in one wave, ask for set: ["node=particles"] and emit each column from one GPUParticles3D.

04 // REAL OUTPUT

The column and the plume

A 5.0 s one-shot for a lost tower and a 4 s loop for a base in trouble.

SMOKE_PLUMEFINAL
First frame of the smoke_plume bake
Smoke plume, 7.0 x 10.8 m, compiled with Spatial Compiler. Spec →

06 // FAQ

Tower defense smoke questions

All questions →

README.TOWER_DEFENSE_SMOKE_EFFECT
How do I animate different smoke frames for each particle in a tower defense game?

For looping plumes, give each particle a random start frame using Animation Offset. For a single column, start every copy at frame 0.

Is there a ready smoke effect for Godot in tower defense?

Yes. The smoke_column and smoke_plume examples compile into sprite sheets your agent can wire into a Godot scene lit by your sun.

How should transparency be stored in a six way lightmap for smoke?

Store opacity in the alpha channel of main_pos.png, which holds light from the right, above and behind. The shader multiplies the relit smoke by that opacity.

How do I fade out tower defense smoke particles in Godot?

Use a compile that fades by itself, such as the 5.0 s smoke column. To end a plume loop, play the column once in its place.

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 →