MakeCode Games!

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

← Back to extensions

Image Morph

Create dissolving pixel-by-pixel transition animations when changing sprite images or background scenes.

morph background image

Problem it solves

You want to shift to a new level, weather condition, or scene with a dramatic screen-dissolve transition instead of an abrupt background cut.

What this block does

Smoothly transitions the current background into a new background image by randomly transferring pixels in batches until the transition finishes.

The block

Block ID: backgroundmorphimage

morph backgound image to %img=background_image_picker block

Parameters

NameTypeDefaultMeaning
myImageImageThe new background image to morph into.

Example

scene.setBackgroundImage(img`.`)
imagemorph.morphBackground(img`.`)

Add the extension

Add github:UnicycleDumpTruck/pxt-image-morph to your project, or open: Import pxt-image-morph.