---
title: "Fire hazard effect for platformer games"
description: "Platformer fire is a hazard the player must time. Loop the 2 s fire or fire whirl side-on, match the hurt box to the flame and switch it on a timer."
canonical: https://appliedmanifold.com/effects/platformer-fire-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 fire

GAMES // PLATFORMER FIRE

# Fire effects for a platformer game

In a platformer, fire is a hazard your player has to read and time, such as a burning pit or a pillar of flame. Use a 2 s fire loop or a spinning fire whirl seen from the side, size the hurt box to the visible flame, and give timed hazards a clear warning before they switch on.

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

**FIRE\_WHIRLFINAL**

![First frame of the fire\_whirl bake](/bakes/fire_whirl/poster.webp)

Fire whirl, 4.4 x 7.1 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fire_whirl)

01 // HURT BOX

## Damage where the player sees flame

A player who dies to a flame they never touched feels cheated. The fire whirl compile is 4.4 m wide at its widest and 7.1 m tall, but the vortex at its center is 1.3 m across. Size the `Area3D` to the bright core instead of the faint edges, and check it against the frames in `preview_anim.png`.

Side-on, the fire whirl reads as a pillar to jump past, and the steady fire, about 1.5 m across at the base, reads as a pit or a brazier.

02 // TIMED HAZARDS

## A flame jet on a timer

For a jet that fires every few seconds, keep the loop running and switch its visibility and its `Area3D` together from a `Timer`. Show a small warning first, such as the fire scaled to 0.2 for half a second, so the player can react.

The compile camera is side-on by default, as your camera is, so the flames in the sheet are the flames the player sees.

flame\_jet.gd

```
extends Node3D

@onready var flame: Node3D = $FireWhirl
@onready var hurt_box: Area3D = $HurtBox

func set_burning(on: bool) -> void:
	flame.visible = on
	hurt_box.monitoring = on
```

03 // TORCHES

## Torches along a level

A level lined with torches can run dozens of fires. Give each a random start inside the 2 s loop so they do not flicker together, and let `WorldEnvironment` glow on the HDR flame stand in for real lights, with an `OmniLight3D` only near the player.

`wire` writes a 3D scene. For a 2D Godot project, put one RGBA sheet on a `Sprite2D` with Hframes and Vframes set to 8 and advance `frame` 32 times a second for the 2 s loop.

04 // REAL OUTPUT

## Fire whirl and steady fire

Both are 2 s loops seen side-on, the whirl 7.1 m tall and the steady fire 7.0 m.

**FIREFINAL**

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

Fire, 4.1 x 7.0 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fire)

05 // RELATED

## Related pages

-   [Godot fire Godot 4A looping fire, from a burning wreck to a fire whirl or a window fire, dropped into a Godot 4 scene by your agent.](https://appliedmanifold.com/effects/godot-fire/)
-   [Tower defense firePlay the 2 s fire loop for exactly as long as a tower defense burn zone lasts, and keep the fire whirl for big attacks.](https://appliedmanifold.com/effects/tower-defense-fire-effect/)
-   [Survival campfireTurn the fire compile into a survival campfire that holds up a meter away and lights the camp until its fuel runs out.](https://appliedmanifold.com/effects/survival-fire-effect/)
-   [Platformer dustCompile the dust ring side-on again for platformer landings, scaled to your character and sped up to a quick puff.](https://appliedmanifold.com/effects/platformer-dust-effect/)
-   [HDR emissive fireHDR emissive fire stores flame brightness above white, so bloom makes the core glow while the smoke stays lit by the scene.](https://appliedmanifold.com/learn/hdr-emissive-fire/)
-   [Godot fire whirl Godot 4A fire whirl that spins flames into a 7 m column and loops every 2 seconds, dropped into a Godot 4 scene by your agent.](https://appliedmanifold.com/effects/godot-fire-whirl/)
-   [ExamplesThe hosted pyrofx recipes are fire, fireball, fire\_whirl, window\_fire, smoke\_column, smoke\_plume, dust\_ring, impact, kickup\_soil and kickup\_masonry. The rendered starter library retains its recorded compile version; each example links its report.](https://appliedmanifold.com/docs/pyrofx/examples/)

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

[← Platformer explosions](https://appliedmanifold.com/effects/platformer-explosion-effect/)

06 // FAQ

## Platformer fire questions

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

**README.PLATFORMER\_FIRE\_EFFECT**

### How do I use a fire flipbook texture with GPUParticles3D in Godot?

Ask your agent to wire the compile with set node particles. It writes a GPUParticles3D with the lighting shader on its draw pass.

### How do I make several fire copies look different in Godot?

Ask your agent for a few seeds of the same spec. Each new seed produces a distinct instance so neighboring fires do not move in step.

### Should the first and last frames of a fire loop match in Godot?

Yes. The fire compile blends its last 12 frames into its first so frame 64 leads smoothly back to frame 1 every 2 s.

### Does Godot support sprite sheets?

Yes, Godot splits sheets using Hframes and Vframes on Sprite2D and Sprite3D or plays particle grids through Particles Anim H Frames and V Frames.

## 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) [Examples →](https://appliedmanifold.com/docs/pyrofx/examples/)

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