Wiki source code of Previous look / Previous background
Last modified by admin on 2023/10/27 10:15
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="box infomessage" %) | ||
2 | ((( | ||
3 | Switches to the previous look in the object’s look list (this can also be the background). The object needs more than one look. | ||
4 | |||
5 | [[image:previous_look--brick.png||alt="Previous look Brick"]] | ||
6 | |||
7 | [[image:previous-background-brick.png]] | ||
8 | ))) | ||
9 | |||
10 | (% class="row" %) | ||
11 | ((( | ||
12 | (% class="col-xs-12 col-sm-6" %) | ||
13 | ((( | ||
14 | (% class="box" %) | ||
15 | ((( | ||
16 | ==== **Example #1** ==== | ||
17 | |||
18 | You will need two or more looks for your object: | ||
19 | |||
20 | [[image:previous_look_example_1.png||alt="Previous look Example 1"]] | ||
21 | |||
22 | To change to the previous look touch the screen on the left side. If you touch it on the right side it will change to the next look. | ||
23 | |||
24 | [[image:previous_look.png||alt="Previous look Example 2"]] | ||
25 | |||
26 | **Note: When it reaches the top of the list, it will continue at the end of the list.** | ||
27 | ))) | ||
28 | ))) | ||
29 | |||
30 | (% class="col-xs-12 col-sm-6" %) | ||
31 | ((( | ||
32 | (% class="box" %) | ||
33 | ((( | ||
34 | ==== **Result** ==== | ||
35 | |||
36 | [[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/pocketcode/program/34690]] | ||
37 | |||
38 | [[image:previous-look-2.gif||alt="Previous look Result"]] | ||
39 | ))) | ||
40 | ))) | ||
41 | ))) | ||
42 | |||
43 | (% class="row" %) | ||
44 | ((( | ||
45 | (% class="col-xs-12 col-sm-6" %) | ||
46 | ((( | ||
47 | (% class="box" %) | ||
48 | ((( | ||
49 | ==== **Example #2** ==== | ||
50 | |||
51 | You will need two or more backgrounds: | ||
52 | |||
53 | [[image:next-background-example1.png]] | ||
54 | |||
55 | Take this script to change to the previous background in the list if you tap on the left side of the stage. | ||
56 | |||
57 | [[image:next-background--example2.png]] | ||
58 | |||
59 | **Note: When it reaches the end of the list, it goes back to the top and starts all over again.** | ||
60 | ))) | ||
61 | ))) | ||
62 | |||
63 | (% class="col-xs-12 col-sm-6" %) | ||
64 | ((( | ||
65 | (% class="box" %) | ||
66 | ((( | ||
67 | ==== **Result** ==== | ||
68 | |||
69 | [[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/app/project/7ca44311-d8b6-11ea-a5c3-005056a36f47]] | ||
70 | |||
71 | [[image:next-background-example.gif]] | ||
72 | ))) | ||
73 | ))) | ||
74 | ))) |