Wiki source code of Wait until all other scripts have stopped
Last modified by Stephan Robinig on 2021/01/25 12:41
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 | |
![]() |
25.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 | |||
![]() |
25.1 | 18 | [[image:wait-until-all-other-scripts-stopped-7.png]] |
![]() |
16.1 | 19 | |
![]() |
25.1 | 20 | [[image:wait-until-all-other-scripts-stopped-2.png]] |
![]() |
16.1 | 21 | |
![]() |
25.1 | 22 | [[image:wait-until-all-other-scripts-stopped-6.png]] |
![]() |
16.1 | 23 | |
![]() |
25.1 | 24 | [[image:wait-until-all-other-scripts-stopped-3.png]] |
![]() |
16.1 | 25 | |
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 | |||
![]() |
25.1 | 28 | [[image:wait-until-all-other-scripts-stopped-5.png]] |
![]() |
16.1 | 29 | |
![]() |
25.1 | 30 | [[image:wait-until-all-other-scripts-stopped-4.png]] |
![]() |
16.1 | 31 | ))) |
32 | ))) | ||
33 | |||
34 | (% class="col-xs-12 col-sm-6" %) | ||
35 | ((( | ||
36 | (% class="box" %) | ||
37 | ((( | ||
38 | ==== **Result** ==== | ||
39 | |||
40 | [[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/app/project/3b2d42cc-1eec-11eb-a92d-005056a36f47]] | ||
41 | |||
![]() |
25.1 | 42 | [[image:wait-until-all-other-scripts-stopped.gif]] |
![]() |
16.1 | 43 | ))) |
44 | ))) | ||
45 | ))) |