Wiki source code of Forever [statement] end of loop
Last modified by admin on 2023/10/24 12:00
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="box infomessage" %) | ||
2 | ((( | ||
3 | Creates a loop. All bricks between “Forever” and “End of loop” will be repeated forever. | ||
4 | |||
5 | [[image:Forever_brick.png||alt="Forever Brick"]] | ||
6 | |||
7 | The "End of loop" will be created automatically. | ||
8 | |||
9 | [[image:Forever-end_brick.png]] | ||
10 | ))) | ||
11 | |||
12 | (% class="row" %) | ||
13 | ((( | ||
14 | (% class="col-xs-12 col-sm-6" %) | ||
15 | ((( | ||
16 | (% class="box" %) | ||
17 | ((( | ||
18 | ==== **Example** ==== | ||
19 | |||
20 | You will need two or more looks for your object: | ||
21 | |||
22 | [[image:forever_example_1.png||alt="Forever Example 1"]] | ||
23 | |||
24 | Take this script to change to the next look in the list. Use wait bricks so that the look is not switched too quickly: | ||
25 | |||
26 | [[image:Forever_tutorial.png||alt="Forever Example 2"]] | ||
27 | |||
28 | **Note: when it gets to the end of the list, it goes back to the top.** | ||
29 | ))) | ||
30 | ))) | ||
31 | |||
32 | (% class="col-xs-12 col-sm-6" %) | ||
33 | ((( | ||
34 | (% class="box" %) | ||
35 | ((( | ||
36 | ==== **Result** ==== | ||
37 | |||
38 | [[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/pocketcode/program/35694]] | ||
39 | |||
40 | [[image:forever-2.gif||alt="Forever Result"]] | ||
41 | ))) | ||
42 | ))) | ||
43 | ))) | ||
44 | |||
45 | (% id="gtx-trans" style="position: absolute; left: -3px; top: 1837.61px;" %) | ||
46 | ((( | ||
47 | (% class="gtx-trans-icon" %) | ||
48 | ((( | ||
49 | |||
50 | ))) | ||
51 | ))) |