Show last authors
1 (% class="box infomessage" %)
2 (((
3 Changes the look of an object to a specified look using its number. The object needs more than one look. Looks are sorted from top to bottom as they appear in the looks-list. If you change the order of the looks, the numbers will change and the brick will show a different look.
4
5 [[image:switch_to_look_with_number_brick.png||alt="Switch to look with number Brick"]]
6 )))
7
8 (% class="row" %)
9 (((
10 (% class="col-xs-12 col-sm-6" %)
11 (((
12 (% class="box" %)
13 (((
14 ==== **Example** ====
15
16 Your object needs two different looks:
17
18 [[image:switch_look_number_example_1.png||alt="Switch to look with number 1"]]
19
20 Then use this script to animate your object. Use wait bricks so that the look is not switched too quickly:
21
22 [[image:switch_to_look_with_number__.png||alt="Switch to look with number Example 2"]]
23 )))
24 )))
25
26 (% class="col-xs-12 col-sm-6" %)
27 (((
28 (% class="box" %)
29 (((
30 ==== **Result** ====
31
32 [[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/pocketcode/program/37865]]
33
34 [[image:switch-to-look-with-number-__-2.gif||alt="Switch to look with number Result"]]
35 )))
36 )))
37 )))
38
39 (% id="gtx-trans" style="position: absolute; left: 336px; top: 733px;" %)
40 (((
41 (% class="gtx-trans-icon" %)
42 (((
43
44 )))
45 )))