Wiki source code of Wait until all other scripts have stopped
Last modified by admin on 2023/10/27 09:00
Hide last authors
author | version | line-number | content |
---|---|---|---|
3.1 | 1 | (% class="box infomessage" %) | |
2 | ((( | ||
16.1 | 3 | Let’s the script wait until all other scripts have stopped. This includes all script from all other objects. Scripts can be stopped through the [[stop brick>>doc:Documentation.BrickDocumentation.StopScriptBrick.WebHome]] or when terminated by lack of further operations. | |
3.1 | 4 | ||
40.1 | 5 | [[image:wait-until-all-other-scripts-stopped-brick.png]] | |
3.1 | 6 | ))) | |
16.1 | 7 | ||
8 | (% class="row" %) | ||
9 | ((( | ||
10 | (% class="col-xs-12 col-sm-6" %) | ||
11 | ((( | ||
12 | (% class="box" %) | ||
13 | ((( | ||
14 | ==== **Example** ==== | ||
15 | |||
16 | This example will demonstrate when the "wait until other scripts have stopped" brick will continue. Every object has ongoing scripts when tapped. | ||
17 | |||
40.1 | 18 | [[image:wait-until-all-other-scripts-stopped-7.png]] | |
16.1 | 19 | ||
40.1 | 20 | [[image:wait-until-all-other-scripts-stopped-2_1.png||alt="wait-until-all-other-scripts-stopped-2.png"]][[image:wait-until-all-other-scripts-stopped-2_2.png]] | |
16.1 | 21 | ||
40.1 | 22 | [[image:wait-until-all-other-scripts-stopped-6.png]] | |
16.1 | 23 | ||
40.1 | 24 | [[image:wait-until-all-other-scripts-stopped-3_1.png||alt="wait-until-all-other-scripts-stopped-3.png"]] | |
25 | [[image:wait-until-all-other-scripts-stopped-3_2.png]] | ||
16.1 | 26 | The racoon will say "We are done here!" after all other scripts have stopped. This depends on how often you tap the objects. | |
27 | |||
40.1 | 28 | [[image:wait-until-all-other-scripts-stopped-5.png]] | |
16.1 | 29 | ||
40.1 | 30 | [[image:wait-until-all-other-scripts-stopped-4_1.png||alt="wait-until-all-other-scripts-stopped-4.png"]] | |
31 | [[image:wait-until-all-other-scripts-stopped-4_2.png]] | ||
16.1 | 32 | ))) | |
33 | ))) | ||
34 | |||
35 | (% class="col-xs-12 col-sm-6" %) | ||
36 | ((( | ||
37 | (% class="box" %) | ||
38 | ((( | ||
39 | ==== **Result** ==== | ||
40 | |||
41 | [[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/app/project/3b2d42cc-1eec-11eb-a92d-005056a36f47]] | ||
42 | |||
40.1 | 43 | [[image:wait-until-all-other-scripts-stopped.gif]] | |
16.1 | 44 | ))) | |
45 | ))) | ||
46 | ))) |