Wiki source code of When tapped
Last modified by admin on 2023/10/24 11:55
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="box infomessage" %) | ||
2 | ((( | ||
3 | Runs the script when the object is tapped. | ||
4 | |||
5 | The difference to the block //"When stage tapped"// is that //"When tapped"// is specific to individual sprites or objects, while //"When stage is tapped"// applies to the entire screen. | ||
6 | |||
7 | [[image:when-tapped2.png||alt="when-tapped.png"]] | ||
8 | ))) | ||
9 | |||
10 | (% class="row" %) | ||
11 | ((( | ||
12 | (% class="col-xs-12 col-sm-6" %) | ||
13 | ((( | ||
14 | (% class="box" %) | ||
15 | ((( | ||
16 | ==== **Example** ==== | ||
17 | |||
18 | By touching the object it will get bigger. | ||
19 | |||
20 | (% style="text-align:center" %) | ||
21 | [[image:When_tapped_tutorial.png||alt="When tapped Example"]] | ||
22 | ))) | ||
23 | ))) | ||
24 | |||
25 | (% class="col-xs-12 col-sm-6" %) | ||
26 | ((( | ||
27 | (% class="box" %) | ||
28 | ((( | ||
29 | ==== **Result** ==== | ||
30 | |||
31 | [[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/pocketcode/program/34629]] | ||
32 | |||
33 | [[image:when-tapped-2.gif||alt="When tapped Result"]] | ||
34 | ))) | ||
35 | ))) | ||
36 | ))) | ||
37 | |||
38 | (% id="gtx-trans" style="position: absolute; left: 755px; top: 361px;" %) | ||
39 | ((( | ||
40 | (% class="gtx-trans-icon" %) | ||
41 | ((( | ||
42 | |||
43 | ))) | ||
44 | ))) |