Wiki source code of Touch at x: [value] y: [value] for [value] seconds
Last modified by admin on 2023/10/24 12:15
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="box infomessage" %) | ||
2 | ((( | ||
3 | Simulates a touch at a specified position for a specified amount of time at your touchscreen. This brick basically simulates your finger and can be used for longer touches. | ||
4 | |||
5 | [[image:touch-at-brick.png]] | ||
6 | ))) | ||
7 | |||
8 | (% class="row" %) | ||
9 | ((( | ||
10 | (% class="col-xs-12 col-sm-6" %) | ||
11 | ((( | ||
12 | (% class="box" %) | ||
13 | ((( | ||
14 | ==== **Example** ==== | ||
15 | |||
16 | Simulates a 10 second touch at the middle of the screen. Whenever the monster passes the middle of the screen its colour changes. After the touch ends, the color doesn't change anymore. | ||
17 | |||
18 | [[image:touch-at-example_1.png||alt="touch-at-example.png"]] | ||
19 | [[image:touch-at-example_2.png]] | ||
20 | [[image:touch-at-example_3.png]] | ||
21 | ))) | ||
22 | ))) | ||
23 | |||
24 | (% class="col-xs-12 col-sm-6" %) | ||
25 | ((( | ||
26 | (% class="box" %) | ||
27 | ((( | ||
28 | ==== **Result** ==== | ||
29 | |||
30 | [[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/app/project/3ccea99d-2793-11eb-a92d-005056a36f47]] | ||
31 | |||
32 | [[image:touch-at-example.gif]] | ||
33 | ))) | ||
34 | ))) | ||
35 | ))) |