---
title: "Smoke effect for tower defense games | Spatial Compiler"
description: "Smoke in tower defense must never hide the path. Play the 5.0 s smoke column once when a tower falls, and keep a thin plume over the base as a warning."
canonical: https://appliedmanifold.com/effects/tower-defense-smoke-effect/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Effects](https://appliedmanifold.com/effects/)
3.  [VFX for games](https://appliedmanifold.com/effects/vfx-for-games/)
4.  Tower defense smoke

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.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [See the examples →](https://appliedmanifold.com/docs/pyrofx/examples/)

-   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](/bakes/smoke_column/poster.webp)

Smoke column, 8.2 x 9.9 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-smoke_column)

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](/bakes/smoke_plume/poster.webp)

Smoke plume, 7.0 x 10.8 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-smoke_plume)

05 // RELATED

## Related pages

-   [Godot smoke Godot 4Smoke that loops as a leaning plume or rises once after a blast, dropped into a Godot 4 scene by your agent.](https://appliedmanifold.com/effects/godot-smoke/)
-   [Strategy smokeLoop smoke plumes over strategy wrecks and bases, and check how the wind lean and the units behind them look under your camera.](https://appliedmanifold.com/effects/strategy-smoke-effect/)
-   [Survival smokeScale the plume loop into landmark smoke a survival player can read from 300 m, relit by your sun through the day.](https://appliedmanifold.com/effects/survival-smoke-effect/)
-   [Tower defense firePlay the 2 s fire loop for exactly as long as a tower defense burn zone lasts, and keep the fire whirl for big attacks.](https://appliedmanifold.com/effects/tower-defense-fire-effect/)
-   [Six-way lightingSix-way lighting stores smoke lit from six directions in two textures, so a shader can relight the flipbook from your scene light.](https://appliedmanifold.com/learn/six-way-lighting/)
-   [Smoke column sprite sheetThe smoke left after a blast as a 5 second one-shot sprite sheet, how to layer it after an explosion, and how to time it in each engine.](https://appliedmanifold.com/effects/smoke-column-sprite-sheet/)
-   [OutputsWith the default export, each view writes four sheets, `<view>_pos.png`, `_neg.png`, `_colour.png` and `_aux.png`, plus `layout.json`, two still previews, the animated `preview_anim.png` and `bake_report.json`. Sheets are 8 x 8 tiles of 256 px by default.](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All pages in VFX for games →](https://appliedmanifold.com/effects/vfx-for-games/)

[← Tower defense fire](https://appliedmanifold.com/effects/tower-defense-fire-effect/)[Platformer dust →](https://appliedmanifold.com/effects/platformer-dust-effect/)

06 // FAQ

## Tower defense smoke questions

[All questions →](https://appliedmanifold.com/faq/)

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

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [Outputs →](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
