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