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.

pixel dissolve

Problem it solves

A defeated boss turns into static dust and dissolves pixel by pixel instead of vanishing abruptly.

What this block does

Randomly erases pixels from the sprite image over time before destroying the sprite.

The block

Block ID: retro_pixel_dissolve

pixel dissolve $sprite duration $duration ms block

Parameters

NameTypeDefaultMeaning
spriteSpriteEntityThe sprite to dissolve.
durationnumber400How long the dissolve animation takes in milliseconds.

Example

let enemy = sprites.create(img`.`, SpriteKind.Enemy)
Retro.pixelDissolve(enemy, 500)

Add the extension

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