---
title: "Impact effect for tower defense projectiles"
description: "Every cannon shot in tower defense ends in an impact. The 2.0 s impact fits cannon and mortar towers; compile small tiles and pool one node per tower."
canonical: https://appliedmanifold.com/effects/tower-defense-impact-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 impacts

GAMES // TOWER DEFENSE IMPACT

# Impact effects for a tower defense game

In tower defense every cannon and mortar shot ends in a hit, so impacts are the effect you play most, often several each second for the whole match. Use a 2.0 s ground impact of flash and thrown earth, sized to the tower's projectile, and emit it from one pooled particle node per tower type.

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

**IMPACTFINAL**

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

Impact, 3.5 x 2.8 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-impact)

01 // HOW OFTEN

## Hundreds of hits per wave

Ten cannon towers firing once a second, each hit a 3.2 s clip, keep about 32 impacts alive at all times. A scene per hit means creating and freeing 10 nodes a second. Ask your agent to call `wire` with `set: ["node=particles"]` instead, and emit each hit from one `GPUParticles3D` per tower type.

Set the node's `amount` to the most hits you want alive at once, which caps the cost at the busiest moment of a wave.

02 // CAMERA

## Size impacts for a tower defense camera

A tower defense camera often looks down at the path from about 30 m. With Godot's default 75 degree camera, the 3.5 m impact is then about 80 px wide on a 1080p screen. A default 256 px tile holds three times what the screen shows, so ask for `export.tile_px = 128` and a 1024 px sheet.

Scale by tower: a light cannon's shell at about half size, a mortar round at full size. The thrown earth takes its color from `look.dust_colour`, so a snow map or a desert map can get its own compile.

03 // HOW TO

## Pool impacts in Godot 4

1.  Ask your agent to compile the `impact` example at final quality with `export.tile_px = 128` into `res://fx/` and call `wire` with `set: ["node=particles"]`.
2.  Add the `GPUParticles3D` to your level once, not per shot.
3.  When a projectile lands, call `emit_particle()` with a transform at the hit point, scaled for the tower.
4.  Play the hit sound from the same call, so the sound and the flash land together.

04 // RELATED

## Related pages

-   [Godot impact Godot 4A shell impact with a flash, thrown earth and smoke in 2 seconds, dropped into a Godot 4 scene by your agent.](https://appliedmanifold.com/effects/godot-impact/)
-   [Shooter impactsUse the impact compile for grenade, rocket and mortar hits in a shooter, with one compile per ground type and many hits from one particle node.](https://appliedmanifold.com/effects/shooter-impact-effect/)
-   [Strategy impactsPlay strategy artillery barrages as many 2.0 s impacts from one particle node, precomputed at small tiles and mixed across seeds.](https://appliedmanifold.com/effects/strategy-impact-effect/)
-   [Tower defense explosionsTower defense explosions sized to splash radius, emitted from one node in late waves, with the full fireball kept for boss deaths.](https://appliedmanifold.com/effects/tower-defense-explosion-effect/)
-   [Particle systemA particle system spawns and updates many small sprites or meshes from an emitter to make sparks, smoke, rain and fire.](https://appliedmanifold.com/learn/particle-system/)
-   [Tile sizeHow to pick a sprite sheet tile size from on-screen size, with 128 px and 256 px starting points and the Roblox Studio limit.](https://appliedmanifold.com/effects/sheets/tile-size/)
-   [Bake and wireCall `bake` with a `.pyro.toml` spec and an output folder, then `wire` to write a Godot 4 scene with the six-way shader. `check`, `schema` and `sweep` support the loop.](https://appliedmanifold.com/docs/pyrofx/bake-and-wire/)

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

[← Tower defense explosions](https://appliedmanifold.com/effects/tower-defense-explosion-effect/)[Tower defense fire →](https://appliedmanifold.com/effects/tower-defense-fire-effect/)

05 // FAQ

## Tower defense impact questions

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

**README.TOWER\_DEFENSE\_IMPACT\_EFFECT**

### Should I remove the particle node after each tower defense impact?

No. Keep one pooled GPUParticles3D node per tower type and emit each hit from it instead of creating and freeing nodes.

### How does a shader know how many frames are in a tower defense sprite sheet?

It reads the grid dimensions you configure, such as 8 x 8 for Particles Anim H and V Frames on a StandardMaterial3D.

### Should all frames in a tower defense flipbook have the same dimensions?

Yes. Every tile in the grid shares the same size, 256 px by default or 128 px with export.tile\_px = 128.

### What resolution should each tower defense VFX frame use?

Match the largest size the effect reaches on screen. An impact about 80 px wide needs a 128 px tile rather than 256 px.

## 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) [Bake and wire →](https://appliedmanifold.com/docs/pyrofx/bake-and-wire/)

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