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
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| sprite | Sprite | Entity | The sprite to dissolve. |
| duration | number | 400 | How 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.