Wiki source code of Wait until all other scripts have stopped
Last modified by admin on 2023/10/27 09:00
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="box infomessage" %) | ||
2 | ((( | ||
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. | ||
4 | |||
5 | [[image:wait-until-all-other-scripts-stopped-brick.png]] | ||
6 | ))) | ||
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 | |||
18 | [[image:wait-until-all-other-scripts-stopped-7.png]] | ||
19 | |||
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]] | ||
21 | |||
22 | [[image:wait-until-all-other-scripts-stopped-6.png]] | ||
23 | |||
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]] | ||
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 | |||
28 | [[image:wait-until-all-other-scripts-stopped-5.png]] | ||
29 | |||
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]] | ||
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 | |||
43 | [[image:wait-until-all-other-scripts-stopped.gif]] | ||
44 | ))) | ||
45 | ))) | ||
46 | ))) |