Show last authors
1 (% class="box infomessage" %)
2 (((
3 Runs the script when background changes to a certain background. Needs more than one background.
4
5 [[image:when_background_changes_to_brick2.png||alt="When background changes to Brick"]]
6 )))
7
8 (% class="box" %)
9 (((
10 **Correlates with these bricks:**
11
12
13 [[[[image:set_background_brick2.png||alt="Set background Brick"]]>>doc:Documentation.BrickDocumentation.SetBackgroundBrick.WebHome]]
14 [[Learn more ~>~> >>doc:Documentation.BrickDocumentation.SetBackgroundBrick.WebHome]]
15
16
17 [[[[image:set_background_wait_brick.png||alt="Set background and wait Brick"]]>>doc:Documentation.BrickDocumentation.SetBackgroundAndWaitBrick.WebHome]]
18 [[Learn more ~>~> >>doc:Documentation.BrickDocumentation.SetBackgroundAndWaitBrick.WebHome]]
19 )))
20
21 (% class="row" %)
22 (((
23 (% class="col-xs-12 col-sm-6" %)
24 (((
25 (% class="box" %)
26 (((
27 ==== **Example** ====
28
29 As soon as the background changes, the second script begins. You will need two different backgrounds:
30
31 [[image:when_background_changes_to_example_1.png||alt="When background changes to Example 1"]]
32
33 For the object, try this script:
34
35 [[image:When_background_changes_tutorial_a.png||alt="When background changes to Example 2"]]
36 [[image:When_background_changes_tutorial_b.png]]
37 )))
38 )))
39
40 (% class="col-xs-12 col-sm-6" %)
41 (((
42 (% class="box" %)
43 (((
44 ==== **Result** ====
45
46 :[[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/pocketcode/program/34653]]
47
48 [[image:when-background-changes-to-__-4.gif||alt="When background changes to Result"]]
49 )))
50 )))
51 )))