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.

screen flash

Problem it solves

A flashbang goes off or a magic spell is cast and you want the screen to flash white before fading back.

What this block does

Fades the screen palette to pure white, pauses for a set duration, and fades back to normal colors.

The block

Block ID: retro_screen_flash

screen flash to white for $duration,pause for $pauseTime block

Parameters

NameTypeDefaultMeaning
pauseTimenumber100How long the screen stays white before restoring the original palette.
durationnumber120Fade transition duration in milliseconds.

Example

Retro.screenFlash(100, 150)

Add the extension

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