Electric fence: Current pulses crawl along the sagging wires of an electric fence while arcs snap between them in turn, spitting sparks into the grass.

Electric fence

Current pulses crawl along the sagging wires of an electric fence while arcs snap between them in turn, spitting sparks into the grass.

Electric fence is an HD effect that loops seamlessly every 2 seconds, drawn on a 512 by 512 canvas. It is built from 29 particle emitters and 4 lightning bolts. Most layers blend additively, so it glows on dark backgrounds. Some particles draw ribbon trails.

Colour

Recolours the preview and the free downloads.

Free download with a transparent background, cropped to the effect, 60 frames at 30 fps. Use it in commercial games, no credit needed.

Licence: use it in any project, including paid commercial games such as a game sold on Steam. There is no per-project licence to buy and no credit needed. Terms.

Roblox: the download is a flipbook for a ParticleEmitter. Set FlipbookLayout to Grid8x8, FlipbookMode to OneShot and Lifetime to 2, then emit one particle per cycle. Roblox setup.

REMIX WITH AI

Try:

Left empty, it just opens in the agent, free. Each change is one AI build, and you start with free builds.

Engine data for Unity, Godot, GameMaker and Aseprite comes with a plan: open it in the studio.

OPEN IN THE STUDIO

Change the colours, timing or size, or export for Unity, Godot 4, GameMaker, Phaser, PixiJS and Aseprite.

Try variations: new colours, motion and shapes of this effect, free in the studio.

FRAME BY FRAME

8 evenly spaced moments across the 2 s loop.

Electric fence at 8 moments, from 0 s to 1.75 s

HOW IT'S MADE

Electric fence gets its crackle from 4 lightning bolts (a new jagged path on every strike), backed by 29 particle emitters. Techniques worth a look: ribbon trails, sub-emitters set off by other particles, paths, collisions and post filters (bloom and vignette). 5 scene layers (ground and props) show in the studio for context and stay out of every export.

It loops seamlessly every 2 s, and 15 of its layers fire in bursts, so it pulses instead of flowing evenly. Start times are staggered from 0 s to 1.5 s, so the layers arrive one after another. To change its colour, select "Sky Glow" in the studio and edit Colour A and Colour B. Size on the same layer sets how big its particles are. The colour swatches by the downloads recolour every layer at once.

Layers, in draw order

  1. Sky Glowparticles / additiveA single long-lived particle that stays for the whole loop.
  2. Starsparticles / additiveOne burst of 60 soft glows across a box at the start. Colours range between blue and pale blue.
  3. Far HillsparticlesOne burst of 5 dots along a line at the start. Colour: deep blue.
  4. Watchtower, Watchtower HutparticlesA single long-lived particle that stays for the whole loop.
  5. Tower Lampparticles / additiveA steady stream of soft glows. Colour: orange.
  6. GrassparticlesOne burst of 90 shards along a line at the start. Colours range between black and deep teal.
  7. Wire 1, Wire 2particlesOne burst of 500 dots along a path at the start. Colour: grey.
  8. Wire Hum 1, Wire Hum 2particles / additiveA steady stream of soft glows along a path. Colours range between blue and cyan.
  9. Current Pulse 1, Current Pulse 2particles / additiveA single particle every 1 s. It travels along a path. Colour: white.
  10. Pulse Glowparticles / additiveSoft glows set off by "Current Pulse 1" and "Current Pulse 2". Colours range between blue and cyan.

19 more layers are in the studio.

DETAILS

Length
2 seconds, seamless loop
Canvas
512 x 512, HD
Layers
29 emitters and 4 lightning bolts
Blend
Mostly additive (glows)
Colours
bluewhitepale cyandeep blue
Sprites
ParticleFX Hazards by ParticleFX Studio (CC0)
Tags
electric, fence, barrier, hazard, lightning, loop

USING IT IN YOUR GAME

Phaser, PixiJS
The PNG sheet is a plain grid of frames that both can slice. A TexturePacker JSON atlas comes with a plan, from the studio.
Unity
Import the PNG sheet as a Sprite with Mode set to Multiple and slice it, or open the effect in the studio for a ready-made grid.
Godot 4, GameMaker, Aseprite
Open it in the studio and pick your engine in Export: with a plan, it writes the files that engine imports.
Web and chat
The GIF plays anywhere; the APNG keeps soft edges on any background.
Blend mode
This effect is made of light. For the same glow in your game, draw the sprite with additive blending, or export it on black from the studio for additive shaders.

Step by step: Unity, Godot 4, Roblox, GameMaker, Phaser and PixiJS, Aseprite, Web games (live runtime). Drawn with additive blending: see glow effects without a black box.

MORE Hazards & Environment

YOU MIGHT ALSO LIKE

All Hazards & Environment effects or the full library.