---
title: "Make repeated explosions look different in Godot 4"
description: "Compile or draw two to four explosion variants, pick one at random and vary scale and timing in Godot 4. Random start frames do not work for one-shots."
canonical: https://appliedmanifold.com/guides/godot-varied-explosions/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Guides](https://appliedmanifold.com/guides/)
3.  Varied explosions

GUIDE // GODOT 4

# How to make multiple explosions look different in Godot 4

Make two to four versions of the explosion and pick one at random each time, then vary its scale, timing and position a little on top. A random start frame does not work for one-shots, because the flash has to come first. Ask your agent for the same explosion with new seeds and you get distinct versions to choose from.

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

**FIREBALLFINAL**

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

Fireball, 9.4 x 13.4 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fireball)

01 // HOW TO

## Pick and vary at spawn

1.  Save each variant as its own scene, such as `fireball_a.tscn`, `fireball_b.tscn` and `fireball_c.tscn`.
2.  Preload them into an array and pick one with `pick_random()` each time.
3.  Scale each instance by a random factor between about 0.85 and 1.15. More than that and the sizes stop looking like the same weapon.
4.  Add a small random delay to secondary layers, such as the smoke, so the layers do not line up the same way twice.
5.  Avoid playing the same variant twice in a row in one spot; keep the last pick and skip it.

explosions.gd

```
extends Node3D

const VARIANTS := [
	preload("res://fx/fireball_a.tscn"),
	preload("res://fx/fireball_b.tscn"),
	preload("res://fx/fireball_c.tscn"),
]
var last: PackedScene

func spawn_explosion(pos: Vector3) -> void:
	var pick: PackedScene = VARIANTS.pick_random()
	if pick == last:
		pick = VARIANTS[(VARIANTS.find(pick) + 1) % VARIANTS.size()]
	last = pick
	var fx: Node3D = pick.instantiate()
	add_child(fx)
	fx.global_position = pos
	fx.scale = Vector3.ONE * randf_range(0.85, 1.15)
```

02 // WITH SPATIAL COMPILER

## Compile variants with new seeds

Ask your agent for the same fireball with three seeds. A new seed gives a new instance of the same effect, with its own billows and flame shapes. Your agent wires each one into its own scene, ready for the `VARIANTS` array in `explosions.gd`.

To try different settings instead, your agent can sweep up to 16 draft variants side by side, so you pick the strongest before paying for final compiles.

03 // LAYERS

## Mix layers for more combinations

Two fireball variants, two impact variants and an optional smoke column give eight combinations from five compiles. The impact compile throws earth and a little smoke from three emitters, which suits shells on dirt, while the fireball suits fuel and vehicles.

04 // REAL OUTPUT

## Layers to mix

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

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

05 // RELATED

## Related pages

-   [Godot explosion Godot 4An explosion that plays once, a ground fireball or a shell impact, dropped into a Godot 4 scene by your agent.](https://appliedmanifold.com/effects/godot-explosion/)
-   [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/)
-   [Random start frame Godot 4Use Animation Offset and Particles Anim Loop in Godot 4 so each particle starts its flipbook on a different frame.](https://appliedmanifold.com/guides/godot-random-flipbook-start-frame/)
-   [One-shot explosion Godot 4Build a GPUParticles3D explosion in Godot 4 that plays once and frees itself, by hand or from a wired fireball scene.](https://appliedmanifold.com/guides/godot-one-shot-explosion/)
-   [Random start frame UnityGive each Unity flipbook particle a random start frame so many copies of one looping fire or smoke stop moving in sync.](https://appliedmanifold.com/guides/unity-random-start-frame/)
-   [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 Guides →](https://appliedmanifold.com/guides/)

[← Dust along the ground](https://appliedmanifold.com/guides/godot-dust-along-ground/)[Import a flipbook in Unity →](https://appliedmanifold.com/guides/unity-import-flipbook/)

06 // FAQ

## Explosion variety questions

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

**README.GODOT\_VARIED\_EXPLOSIONS**

### How do I make multiple explosions look varied instead of identical in Godot?

Pick randomly from several compiled seed variants and vary scale and timing slightly while keeping each sheet's opening flash intact.

### How do I make a fireball in Godot?

Use a One Shot fireball sheet on a billboard quad, an OmniLight3D that fades out over half a second and WorldEnvironment glow.

### How do I make a bullet impact effect in Godot?

Spawn a small One Shot at the RayCast3D hit point aligned to the surface normal with debris and a brief flash.

### How do I randomize the size, color and lifetime of fire particles in Godot?

Set Scale Min and Max, Hue Variation Min and Max and Lifetime Randomness in ParticleProcessMaterial using subtle hue shifts.

## 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/)
