MakeCode Games!

A fan-made community library of MakeCode Arcade games. Visit MakeCode Arcade to make a game!

← Back to extensions

Retro FX

Add juicy 8-bit sound synthesizers, screen shakes, particle explosions, camera effects, and retro text displays to your games.

add trail

Problem it solves

Your hero acquires a speed boost and you want them to leave after-image ghost sprites behind as they run.

What this block does

Spawns temporary ghost sprites behind the target sprite at regular time intervals.

The block

Block ID: retro_trail_effect

add trail to $sprite image $img interval $interval ms block

Parameters

NameTypeDefaultMeaning
spriteSpritemySpriteThe sprite that creates the trail.
imgImageimg`.`The trail particle image to drop behind the sprite.
intervalnumber50Delay between spawning trail particles in milliseconds.

Example

let hero = sprites.create(img`.`, SpriteKind.Player)
Retro.trailEffect(hero, img`.`, 60)

Add the extension

Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.