---
title: "Fire effect for tower defense: burning ground"
description: "A flame tower in tower defense leaves burning ground for a few seconds. Loop the 2 s fire for the burn, size it to the damage zone, shrink it at the end."
canonical: https://appliedmanifold.com/effects/tower-defense-fire-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 fire

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.

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

**FIREFINAL**

![First frame of the fire bake](/bakes/fire/poster.webp)

Fire, 4.1 x 7.0 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fire)

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

Fire whirl, 4.4 x 7.1 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fire_whirl)

04 // RELATED

## Related pages

-   [Godot fire Godot 4A looping fire, from a burning wreck to a fire whirl or a window fire, dropped into a Godot 4 scene by your agent.](https://appliedmanifold.com/effects/godot-fire/)
-   [Survival campfireTurn the fire compile into a survival campfire that holds up a meter away and lights the camp until its fuel runs out.](https://appliedmanifold.com/effects/survival-fire-effect/)
-   [Strategy fireFire loops for strategy buildings that grow as health drops, precomputed for a camera that looks down from 60 m.](https://appliedmanifold.com/effects/strategy-fire-effect/)
-   [Tower defense smokeSmoke for tower defense that keeps the path clear: a column when a tower falls and a plume over a base in trouble.](https://appliedmanifold.com/effects/tower-defense-smoke-effect/)
-   [Loop vs one-shotLooping effects repeat until stopped and one-shot effects play once and fade out, and each needs its own frames and settings.](https://appliedmanifold.com/learn/loop-vs-one-shot/)
-   [Godot fire whirl Godot 4A fire whirl that spins flames into a 7 m column and loops every 2 seconds, dropped into a Godot 4 scene by your agent.](https://appliedmanifold.com/effects/godot-fire-whirl/)
-   [ExamplesThe hosted pyrofx recipes are fire, fireball, fire\_whirl, window\_fire, smoke\_column, smoke\_plume, dust\_ring, impact, kickup\_soil and kickup\_masonry. The rendered starter library retains its recorded compile version; each example links its report.](https://appliedmanifold.com/docs/pyrofx/examples/)

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

[← Tower defense impacts](https://appliedmanifold.com/effects/tower-defense-impact-effect/)[Tower defense smoke →](https://appliedmanifold.com/effects/tower-defense-smoke-effect/)

05 // FAQ

## Tower defense fire questions

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

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

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

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