Show last authors
1 (% style="text-align:center" %)
2 [[image:12_0.jpg||alt="" width="300"]]
3
4 (% class="box infomessage" %)
5 (((
6 This program shows you how to use your phone's camera to detect a face and therefore making your game more interactive.
7 )))
8
9 (% class="row" %)
10 (((
11 (% class="col-xs-12 col-sm-6" %)
12 (((
13 (% class="box" %)
14 (((
15 = How To: =
16
17 Insert a new object.
18
19 (% style="text-align:center" %)
20 [[image:12_2_1.jpg||alt="" width="300"]]
21 )))
22 )))
23
24 (% class="col-xs-12 col-sm-6" %)
25 (((
26 (% class="box" %)
27 (((
28 Add the following script to check if your face was detected. Use a for-loop to check if your face was detected or not. If it is detected then the variable is TRUE else it´s FALSE.
29
30 (% style="text-align:center" %)
31 [[image:12_2_2.jpg||alt="" width="300"]]
32
33 Insert this formula in the if-statement. You will find the values in the "Sensors" and "Logic" category.
34
35 (% style="text-align:center" %)
36 [[image:12_2_3.jpg||alt="" width="300"]]
37 )))
38 )))
39 )))
40
41 (% class="box infomessage" %)
42 (((
43 [[Download the program here>>https://share.catrob.at/pocketcode/program/3982]]
44 )))