Wiki source code of Go back [value] layer
Last modified by admin on 2023/10/27 09:16
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="box infomessage" %) | ||
2 | ((( | ||
3 | Puts an object back a specified layer. It will appear behind other objects and will be visible through transparent objects. | ||
4 | |||
5 | [[image:go_back__layer_brick2.png||alt="Go Back Layer Brick"]] | ||
6 | ))) | ||
7 | |||
8 | (% class="row" %) | ||
9 | ((( | ||
10 | (% class="col-xs-12 col-sm-6" %) | ||
11 | ((( | ||
12 | (% class="box" %) | ||
13 | ((( | ||
14 | ==== **Example** ==== | ||
15 | |||
16 | Take two objects like these ones: | ||
17 | |||
18 | [[image:go_back_layer_example_1.png||alt="Go Back Layer Example 1"]] | ||
19 | |||
20 | Make the first object transparent: | ||
21 | |||
22 | [[image:go_back__layer_water.png||alt="Go Back Layer Example 2"]] | ||
23 | |||
24 | The monster starts behind the water. As soon as the monster reaches the the specified size it will go to the front | ||
25 | |||
26 | [[image:go_back__layer_monster.png||alt="Go Back Layer Example 3"]] | ||
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/38209]] | ||
37 | |||
38 | [[image:go-back-__-layer-5.gif||alt="Change Y By Result"]] | ||
39 | ))) | ||
40 | ))) | ||
41 | ))) | ||
42 | |||
43 | (% id="gtx-trans" style="position: absolute; left: 454px; top: 1019px;" %) | ||
44 | ((( | ||
45 | (% class="gtx-trans-icon" %) | ||
46 | ((( | ||
47 | |||
48 | ))) | ||
49 | ))) |