---
title: "Explosion effect for platformer games | Spatial Compiler"
description: "Platformer explosions play side-on, like the compile camera. Scale the 13.4 m fireball to your enemies, pause a few frames on the hit and shake the camera."
canonical: https://appliedmanifold.com/effects/platformer-explosion-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.  Platformer explosions

GAMES // PLATFORMER EXPLOSION

# Explosion effects for a platformer game

In a platformer you see explosions from the side, next to a character a meter or two tall, so the burst has to be scaled to the level and land with a jolt. Use a fireball or a ground impact scaled to the enemy or bomb, and pair it with a short freeze and a camera shake.

[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 // SCALE

## A fireball next to a 2 m character

The fireball compile is 13.4 m tall, nearly seven times a 2 m character. A side-on camera 12 m from the level shows about 18 m top to bottom with Godot's default 75 degree field of view, so the full fireball fills three quarters of the screen. Save that size for a boss.

For a bomb enemy, scale the fireball to about 0.25 so it stands about 3.4 m tall. The impact compile, 3.5 x 2.8 m, at about half size makes a ground pound or a crate slamming into the floor.

The compile camera is side-on by default, the same view your player has, so the preview shows what the player gets.

02 // GAME FEEL

## Hit pause and camera shake

Platformers make a hit feel heavy with a few frames of hit pause. Set `Engine.time_scale` to 0 for about 0.05 s of real time, then back to 1. The explosion waits with everything else and starts when the game resumes.

Shake the camera from the same function by offsetting `Camera3D.h_offset` and `v_offset` for a few tenths of a second. The offsets leave the camera's follow logic alone.

hit\_pause.gd

```
extends Node

func hit_pause(seconds := 0.05) -> void:
	Engine.time_scale = 0.0
	await get_tree().create_timer(seconds, true, false, true).timeout
	Engine.time_scale = 1.0
```

03 // HOW TO

## Blow up an enemy in Godot 4

1.  Ask your agent to compile `fireball` and `impact` at final quality into `res://fx/` and call `wire` on each.
2.  When the enemy dies, hide it and instance the fireball at its feet, scaled to about 0.25.
3.  Call the hit pause and start the camera shake.
4.  Free the scene when its 4 s clip ends, or earlier if the camera has scrolled past it.

04 // REAL OUTPUT

## Fireball and impact, both side-on

Both are shown at precomputed size, before you scale them to your level.

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

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/)
-   [Survival explosionsSet off a fuel fireball and dust ring from a damage event in a survival game, with a light flash for blasts at night.](https://appliedmanifold.com/effects/survival-explosion-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/)
-   [Platformer fireSide-on fire loops for platformer hazards, with hurt boxes that match the visible flame and jets on a timer.](https://appliedmanifold.com/effects/platformer-fire-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/)
-   [Explosion sound and shake Godot 4Fire an explosion, its 3D sound and a decaying camera shake together in Godot 4, with the sound delayed by distance.](https://appliedmanifold.com/guides/godot-explosion-sound-shake/)
-   [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/)

[← Platformer dust](https://appliedmanifold.com/effects/platformer-dust-effect/)[Platformer fire →](https://appliedmanifold.com/effects/platformer-fire-effect/)

06 // FAQ

## Platformer explosion questions

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

**README.PLATFORMER\_EXPLOSION\_EFFECT**

### How do I make an explosion light nearby objects in Godot?

Add an OmniLight3D at the base and flicker its energy from a script. The shader adds HDR flame light for glow without lighting other objects.

### Does a platformer explosion need a billboard in Godot?

No. With a fixed side camera, a plain quad facing the camera shows the sheet straight on, matching the default side render angle.

### Can I use the compiled explosion in a 2D platformer?

Yes, by hand. Request one RGBA sheet with export.pack, put it on a Sprite2D with 8 Hframes and 8 Vframes and play 64 frames over 4 s.

### How many frames should a fast platformer explosion use?

The default 64 frames work well. A scaled blast often plays faster than precomputed and at twice speed it still has 64 steps across 2 s.

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