GAMES // TOWER DEFENSE EXPLOSION

Explosion effects for a tower defense game

In tower defense, an explosion tells your player how far a tower's splash damage reaches, so size the blast to the damage radius. Use a 3.7 s fireball for heavy towers and a boss's death, scale it so its width matches the splash area, and emit late-wave blasts from one particle node.

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

FIREBALLFINAL
First frame of the fireball bake
Fireball, 9.4 x 13.4 m, compiled with Spatial Compiler. Spec →

01 // SPLASH RADIUS

Match the blast to the damage area

The fireball compile is 9.4 m wide at its widest. For a mortar tower with a 3 m splash radius (6 m across), scale the scene to about 0.64 so the burst covers the ground the damage covers. Players learn tower ranges from what they see.

splash.gd
extends Node3D

const FIREBALL := preload("res://fx/fireball.tscn")
const BAKED_WIDTH_M := 9.4

func show_splash(at: Vector3, radius_m: float) -> void:
	var fx: Node3D = FIREBALL.instantiate()
	add_child(fx)
	fx.global_position = at
	fx.scale = Vector3.ONE * (radius_m * 2.0 / BAKED_WIDTH_M)
	get_tree().create_timer(4.0).timeout.connect(fx.queue_free)

The scene's origin sits on the ground, so it scales around the hit point.

02 // LATE WAVES

When thirty blasts land in a second

Late waves bunch enemies together, and several splash towers fire into the same crowd. Ask your agent to call wire with set: ["node=particles"] for a GPUParticles3D and emit each blast from it. Cap how many fireballs play at once, and use the smaller impact compile past the cap.

Blasts over one crowd overlap, and every overlapping transparent pixel is drawn again (overdraw). A fireball scaled to 0.64 and seen from 30 m is about 140 px wide on a 1080p screen, so thirty in one spot still cost real frame time. At that size export.tile_px = 128 is close to the screen size and cuts each sheet to 1024 px.

03 // BIG MOMENTS

Boss deaths and a lost base

Keep the full-size fireball, 13.4 m tall, for moments the player should notice: a boss dying on the path or the base taking its last hit. Add the 10.5 m dust ring under it, on the same origin, for the ground shock.

04 // REAL OUTPUT

The fireball and its ground shock

The full-size fireball stands 13.4 m tall over a dust ring 10.5 m wide.

DUST_RINGFINAL
First frame of the dust_ring bake
Dust ring, 10.5 x 2.2 m, compiled with Spatial Compiler. Spec →

06 // FAQ

Tower defense explosion questions

All questions →

README.TOWER_DEFENSE_EXPLOSION_EFFECT
Should a tower defense explosion use a particle effect?

Yes when late waves trigger many blasts at once. One GPUParticles3D draws every explosion cheaper than spawning a scene per blast.

How should frames be arranged in a tower defense VFX sprite sheet?

Frames are arranged row by row from the top left, 8 across and 8 down for 64 frames, as recorded in layout.json.

What frame rate should I use for a scaled down tower defense explosion?

Start with the frame times in layout.json over 4 s or play it faster to make a small splash tower blast feel lighter.

How do I size a tower defense explosion to a tower's splash damage?

Divide the splash diameter by the fireball's 9.4 m width and use that ratio as the scale, such as 0.64 for a 3 m radius.

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 →