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.

  • 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 // 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
Impact, 3.5 x 2.8 m, compiled with Spatial Compiler. Spec →
SMOKE_COLUMNFINAL
First frame of the smoke_column bake
Smoke column, 8.2 x 9.9 m, compiled with Spatial Compiler. Spec →

06 // FAQ

Explosion variety questions

All questions →

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.

All effects, guides and explainers →