Runs the script when background changes to a certain background. Needs more than one background.

When background changes to Brick

Correlates with these bricks:

Set background Brick

Set background and wait Brick

Example

As soon as the background changes, the second script begins. You will need two different backgrounds:

When background changes to Example 1

For the object, try this script:

When background changes to Example 2

When background changes to Example 3

Result

A short sample program: 

Download

When background changes to Result