Login

Fancade Wiki

Renamed Joystick and Button to Joystick & Button

... ...
@@ -0,0 +1,53 @@
1
Joystick and Button Shares the same limit, there are only 4 points in this limit, Button consumes 1 point each and joystick consumes 2 points, at max you can have 1 joystick + 2 buttons, 2 joysticks, or 4 buttons
2
3
[[uploads/Joystick_And_Button.jpg]]
4
5
# Joystick
6
Adds joystick/s in the screen, unlike most of the blocks in **Control** tab, Joystick doesn't have any execution (yellow) output wire
7
8
[[uploads/Joystick.png|width=336px]]
9
10
## Details
11
12
#### Output :
13
\- Joy Dir: (Joystick Direction) Outputs joystick movement's direction
14
15
#### Settings :
16
\- Direction: Most useful when [[perspective]] is active, changes the direction "Joy Dir" outputs:
17
18
* XZ - Outputs XZ vector values perpendicular to camera direction (While assuming that the screen is always facing straight to a certain axis)
19
20
* Screen - Outputs XY vector values regardless of where the camera is facing.
21
22
23
# Button
24
Adds button/s in the screen.
25
26
[[uploads/Button.png|width=336px]]
27
28
## Details
29
30
#### Output :
31
\- Button: Executes when the button display is pressed
32
33
#### Settings :
34
\- Display: Changes wheter the buttons should be displayed as buttons or arrows:
35
* Button - displays the button as a circular button
36
* Direction - displays the button as a directional arrow
37
38
Setting the display to "Direction" mode results in following :
39
- 1 button - button is displayed as arrow pointing up
40
[[Uploads/Up_Front.jpg]]
41
- 2 buttons - buttons are displayed as arrows facing left and right respectively
42
[[Uploads/2-Sides.jpg]]
43
- 3 buttons - buttons are displayed as arrows facing left , right and up respectively
44
[[Uploads/Side-Up.jpg]]
45
- 4 buttons - buttons are displayed as arrows facing left , right , down and up respectively
46
[[Uploads/All_four.jpg]]
47
48
# Advanced Techniques
49
50
### Joystick
51
Joystick may not give the right outputs you need, this is because it only gives values perpendicular to the where the camera is facing, for example, if you use **XZ** option the values will seem normal if the camera is facing in Y-axis upwards or downwards regardless of angle but if it's facing sidewards or front and backwards it will only output X-axis value if you're looking at Z-axis and vice versa, in this case you could instead use the **Screen** option which outputs XY values instead and ignores where the camera is facing. This will help but also there's still one more problem to solve, it only output values upwards and sidewards now! Well the solution is actually pretty simple!! Just use rotate vector with **<font color="ffa500">Rotation</font>** input [90, 0, 0].
52
53
[[Uploads/Joystick_Solution.jpg]]
... ...
@@ -1,53 +0,0 @@
1
Joystick and Button Shares the same limit, there are only 4 points in this limit, Button consumes 1 point each and joystick consumes 2 points, at max you can have 1 joystick + 2 buttons, 2 joysticks, or 4 buttons
2
3
[[uploads/Joystick_And_Button.jpg]]
4
5
# Joystick
6
Adds joystick/s in the screen, unlike most of the blocks in **Control** tab, Joystick doesn't have any execution (yellow) output wire
7
8
[[uploads/Joystick.png|width=336px]]
9
10
## Details
11
12
#### Output :
13
\- Joy Dir: (Joystick Direction) Outputs joystick movement's direction
14
15
#### Settings :
16
\- Direction: Most useful when [[perspective]] is active, changes the direction "Joy Dir" outputs:
17
18
* XZ - Outputs XZ vector values perpendicular to camera direction (While assuming that the screen is always facing straight to a certain axis)
19
20
* Screen - Outputs XY vector values regardless of where the camera is facing.
21
22
23
# Button
24
Adds button/s in the screen.
25
26
[[uploads/Button.png|width=336px]]
27
28
## Details
29
30
#### Output :
31
\- Button: Executes when the button display is pressed
32
33
#### Settings :
34
\- Display: Changes wheter the buttons should be displayed as buttons or arrows:
35
* Button - displays the button as a circular button
36
* Direction - displays the button as a directional arrow
37
38
Setting the display to "Direction" mode results in following :
39
- 1 button - button is displayed as arrow pointing up
40
[[Uploads/Up_Front.jpg]]
41
- 2 buttons - buttons are displayed as arrows facing left and right respectively
42
[[Uploads/2-Sides.jpg]]
43
- 3 buttons - buttons are displayed as arrows facing left , right and up respectively
44
[[Uploads/Side-Up.jpg]]
45
- 4 buttons - buttons are displayed as arrows facing left , right , down and up respectively
46
[[Uploads/All_four.jpg]]
47
48
# Advanced Techniques
49
50
### Joystick
51
Joystick may not give the right outputs you need, this is because it only gives values perpendicular to the where the camera is facing, for example, if you use **XZ** option the values will seem normal if the camera is facing in Y-axis upwards or downwards regardless of angle but if it's facing sidewards or front and backwards it will only output X-axis value if you're looking at Z-axis and vice versa, in this case you could instead use the **Screen** option which outputs XY values instead and ignores where the camera is facing. This will help but also there's still one more problem to solve, it only output values upwards and sidewards now! Well the solution is actually pretty simple!! Just use rotate vector with **<font color="ffa500">Rotation</font>** input [90, 0, 0].
52
53
[[Uploads/Joystick_Solution.jpg]]
Fancade Wiki