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
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| pauseTime | number | 100 | How long the screen stays white before restoring the original palette. |
| duration | number | 120 | Fade transition duration in milliseconds. |
Example
Retro.screenFlash(100, 150)
Add the extension
Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.