Upload all the images to the wiki
commited
commit
54f52fa7ad4b0e5261a0e0271318781c83667459
... | ... | @@ -2,6 +2,6 @@ Combines two rotations into one. |
2 | 2 | |
3 | 3 | Note: the operation is not commutative, which means that changing the order of the Rotations does change the result. |
4 | 4 | |
5 | [[https://cdn.discordapp.com/attachments/544763659625168897/649891191089004554/Screenshot_2019-11-29-13-33-03-868_com.martinmagni.fancade.png]]
|
|
5 | [[/uploads/Screenshot_2019-11-29-13-33-03-868_com.martinmagni.fancade.png]]****
|
|
6 | 6 | |
7 | 7 | [[/uploads/Combine.png]] |
... | ... | \ No newline at end of file |
... | ... | @@ -2,11 +2,11 @@ Linearly interpolates between two rotations. |
2 | 2 | |
3 | 3 | [[/uploads/Lerp.png]] |
4 | 4 | |
5 | ## Example |
|
5 | ### Example |
|
6 | 6 | |
7 | 7 | Here's a script to get you started. |
8 | 8 | |
9 | ![LERP_example](https://cdn.discordapp.com/attachments/520112989416718346/784828563726794812/Screenshot_20201205-2212052.png) |
|
9 | [[/uploads/Screenshot_20201205-2212052.png|alt=LERP usage example]] |
|
10 | 10 | |
11 | 11 | Explaination of the above script: Rot A is the rotation of the block. Use get position if you made the block to have other rotations too (You have to get the rotation in a single frame, or else it will become a loop of the LERP script trying to set it back to Rot B.). Rot B is the rotation you want the block to go to. Set B to the rotation you want. "Speed" is the speed of changing the rotation A to rotation B. |
12 | 12 | Now it will be easier to understand LERP, with which you can do smooth rotations. |
... | ... | \ No newline at end of file |
... | ... | @@ -2,7 +2,7 @@ The Number block outputs a given value. |
2 | 2 | |
3 | 3 | To change the value of the number block, select the block, then tap the button right below the open inventory button, in the bottom right corner. |
4 | 4 | |
5 | [[https://cdn.discordapp.com/attachments/759791330016100352/759807481693339658/ChangeValue.png|Changing the value of a number block]] |
|
5 | [[uploads/ChangeValue.png|alt=Changing the value of a number block]] |
|
6 | 6 | |
7 | 7 | This will open up the keypad, which you can use to change the value that the number script block will output. |
8 | 8 |
... | ... | @@ -4,6 +4,6 @@ Tip of the day, by Potato Chan: If your game is in a top-down view that doesn't |
4 | 4 | 1. Set the light angle to the same as the camera angle. |
5 | 5 | 2. Set Camera with a very high Y. |
6 | 6 | |
7 | [[https://cdn.discordapp.com/attachments/409219534231437323/678600485321834506/Polish_20200216_215129494.jpg]] |
|
7 | [[/uploads/Polish_20200216_215129494.jpg]] |
|
8 | 8 | |
9 | 9 | [[/uploads/Setlight.png]] |
... | ... | \ No newline at end of file |
... | ... | @@ -2,7 +2,7 @@ Executes the output when user touches the screen. It'll also output the screen c |
2 | 2 | |
3 | 3 | They can be changed by selecting the touch sensor and tapping the buttons that appear in the bottom right corner. |
4 | 4 | |
5 | [[https://cdn.discordapp.com/attachments/464440459410800644/608634005411201024/image0.png]] |
|
5 | [[/uploads/touch-sensor-options.png]] |
|
6 | 6 | |
7 | 7 | The first button has three options: |
8 | 8 |
... | ... | @@ -2,11 +2,11 @@ Some blocks have wires sticking out of them. These are *script blocks* and you s |
2 | 2 | |
3 | 3 | When you tap Play, script blocks *execute* and do their thing. E.g. [[Set Score]] sets the current score, so if we wire the [[Number]] 3 to it, the score is set to 3. |
4 | 4 | |
5 | [[https://cdn.discordapp.com/attachments/465222839327260672/620193017290293263/ex01_set_score.png]] |
|
5 | [[/uploads/ex01_set_score.png]] |
|
6 | 6 | |
7 | Blocks execute top-to-bottom, left-to-right. But you can plug in the yellow *control wires* to change the execution order. This is especially useful when you want to execute a block only some of the time. E.g. here I've wired a [[Button|https://www.fancade.com/wiki/cant_find_buttons_motors_characters]] to [[If|https://www.fancade.com/wiki/if]] to [[Win|https://www.fancade.com/wiki/win]], so when the player moves onto the button, then the game is won: |
|
7 | Blocks execute top-to-bottom, left-to-right. But you can plug in the yellow *control wires* to change the execution order. This is especially useful when you want to execute a block only some of the time. E.g. here I've wired a [[Button|Can't find buttons, motors, characters?]] to [[If]] to [[Win]], so when the player moves onto the button, then the game is won: |
|
8 | 8 | |
9 | [[https://cdn.discordapp.com/attachments/465222839327260672/620193021710827531/ex02_win_if_button.png]] |
|
9 | [[/uploads/ex02_win_if_button.png]] |
|
10 | 10 | |
11 | 11 | There are other wire colors as well: |
12 | 12 |
... | ... | @@ -1,6 +1,6 @@ |
1 | 1 | LERP is a very good script for changing Rot A which is the rotation of a block to Rot B, smoothly. |
2 | After understanding LERP and using it in a few projects, you will always want something like LERP Position of some sort. For you, here is a script to make you understand. |
|
2 | After understanding LERP and using it in a few projects, you will always want something like LERP Position of some sort. For you, here is a script to help you understand. |
|
3 | 3 | |
4 | ![Smooth_position.png](https://cdn.discordapp.com/attachments/520112989416718346/785029553819090944/Screenshot_20201206-1155032.png) |
|
4 | A is the point where B (The position of the block) needs to reach. Speed is the speed that B needs to reach A. (Set B to the position where the block needs to stand initially, in a single frame) Just do this and you'll love it. |
|
5 | 5 | |
6 | Explanation of the above script: A is the point where B (The position of the block) needs to reach. Speed is the speed that B needs to reach A. (Set B to the position where the block needs to stand initially, in a single frame) Just do this and you'll love it. |
|
... | ... | \ No newline at end of file |
0 | [[/uploads/Screenshot_20201206-1155032.png]] |
|
... | ... | \ No newline at end of file |
... | ... | @@ -1,11 +1,11 @@ |
1 | 1 | There are several ways to achieve it. The first one is changing camera rotation depending on the screen orientation so the way a player flips a device doesn't have an effect on what is displayed on screen: |
2 | 2 | |
3 | [[https://cdn.discordapp.com/attachments/544763659625168897/632806501001592872/IMG_20191013_100643.jpg]] |
|
3 | [[/uploads/IMG_20191013_100643.jpg]] |
|
4 | 4 | |
5 | 5 | These scripts will set vertical orientation. If you want horizontal, just wire that [[Set Rotation|Set Variable]] to the "Else" plug instead of "True". |
6 | 6 | |
7 | 7 | The second method is way straightforward, just place the [[Accelerometer]] script block anywhere on floor (don't forget to wire it to something with yellow plugs!) — it will literally lock the screen orientation to a state that was when a game was opened. It's useful when you don't necessarily need a specific orientation to be set but you want it to be unchangeable during gameplay. |
8 | 8 | |
9 | [[https://cdn.discordapp.com/attachments/544763659625168897/632654164077576212/Screenshot_2019-10-12-23-59-57-807_com.martinmagni.fancade.png]] |
|
9 | [[/uploads/Screenshot_2019-10-12-23-59-57-807_com.martinmagni.fancade.png]] |
|
10 | 10 | |
11 | 11 | Might be worth noting that all of these are a last resort for games that are not just inconvenient, but impossible, to play in the "other" orientation. Else just let the user play the way they prefer. |
... | ... | \ No newline at end of file |
... | ... | @@ -2,4 +2,4 @@ Check out Mathias Elgaard's [[Video Tutorial on loops for more info!|https://www |
2 | 2 | |
3 | 3 | There are multiple ways to make a loop one of the ways to make one is to make a repeating timer by make so that every frame num is increased by 1 and then when num=120 (60 frames is 1 sec) a sound plays. |
4 | 4 | |
5 | [[https://cdn.discordapp.com/attachments/718624339955548242/784830465978007582/unknown.jpeg]] |
|
... | ... | \ No newline at end of file |
0 | [[/uploads/unknown.jpeg]] |
|
... | ... | \ No newline at end of file |
... | ... | @@ -1,9 +1,9 @@ |
1 | 1 | Assuming you're making a top-down view game, zoom = 5 * block width. E.g. to fit 10 blocks wide, set zoom to 50: |
2 | 2 | |
3 | [[https://cdn.discordapp.com/attachments/608689686134784000/612718494869487623/IMG_20190818_234332.png]] |
|
3 | [[/uploads/IMG_20190818_234332.png]] |
|
4 | 4 | |
5 | 5 | What about height? Well, different users will have different screen sizes, so even with a fixed width the height is variable. But like the image shows, you can compute it by multiplying width by the screen's aspect ratio. |
6 | 6 | |
7 | [[https://cdn.discordapp.com/attachments/608689686134784000/612718494856904846/IMG_20190818_234312.png]]
|
|
7 | [[/uploads/IMG_20190818_234312.png]]****
|
|
8 | 8 | |
9 | 9 | Zoom automatically adapts to the smallest dimension, so in landscape mode the role of height and width are reversed. |
... | ... | \ No newline at end of file |
... | ... | Binary files /dev/null and b/uploads/ChangeValue.png differ |
... | ... | Binary files /dev/null and b/uploads/IMG_20190818_234312.png differ |
... | ... | Binary files /dev/null and b/uploads/IMG_20190818_234332.png differ |
... | ... | Binary files /dev/null and b/uploads/IMG_20191013_100643.jpg differ |
... | ... | Binary files /dev/null and b/uploads/Polish_20200216_215129494.jpg differ |
... | ... | Binary files /dev/null and b/uploads/Screenshot_2019-10-12-23-59-57-807_com.martinmagni.fancade.png differ |
... | ... | Binary files /dev/null and b/uploads/Screenshot_2019-11-29-13-33-03-868_com.martinmagni.fancade.png differ |
... | ... | Binary files /dev/null and b/uploads/Screenshot_20201205-2212052.png differ |
... | ... | Binary files /dev/null and b/uploads/Screenshot_20201206-1155032.png differ |
... | ... | Binary files /dev/null and b/uploads/ex01_set_score.png differ |
... | ... | Binary files /dev/null and b/uploads/ex02_win_if_button.png differ |
... | ... | Binary files /dev/null and b/uploads/touch-sensor-options.png differ |
... | ... | Binary files /dev/null and b/uploads/unknown.jpeg differ |