User contributions for Nikitaivanov
A user with 530 edits. Account created on 29 April 2024.
16 May 2024
- 19:0819:08, 16 May 2024 diff hist +695 N Screen To World Created page with "Given a screen coordinate, outputs the start and end points of a line going through that point (2 and 400 units away from the camera, respectively). That might sound weird, but usually you'll just wire those points into a Raycast to find the object the user tapped! /uploads/Screen To World.png = Notes = Due to a technical issue, still to be fixed, the output lags by one frame. I.e. if you Set Camera on frame N, then this block's..."
- 19:0819:08, 16 May 2024 diff hist +123 N Screen Size Created page with "Outputs the width(x) and height(y) of the screen in pixels. /uploads/Screen Size.png Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +185 N Scale Created page with "File:Scale1.png Multiplies each vector component by the input number. File:Screenshot_2022-02-16-17-08-27-04_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +167 N Round Created page with "File:Round1.png Rounds a number to the closest integer. File:Screenshot_2022-02-16-16-56-54-96_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +792 N Rotation Created page with "Similar to Vector, but for rotations instead of a position. The values represent an angle from 0 to 360, though you can use any value and it will loop around, so 361 will be the same as just using a 1. File:Rotation1.png It can be used to set the rotation of a block, angle of the camera, to rotate a vector, among other things. Rotations are applied in Y,X,Z order, this means that a block with a rotation of (45, 10, 25), will first be rotated on Y by 10°, then..."
- 19:0819:08, 16 May 2024 diff hist +1,115 N Rotate Created page with "Rotates vector by a rotation. File:Rotate.png == Example == You can move a block to the direction that it's facing. Since the arrow is facing up by default, the velocity of the arrow should be upwards (0, 0, 0.1). To get the velocity of the block if it's not facing up, we can rotate the velocity (0, 0, 0.1) by the block's rotation. To move the block, we just add the block's position and the velocity and set that to the block's new position. File:Screenshot_202..."
- 19:0819:08, 16 May 2024 diff hist +1,958 N Raycast Created page with "File:Raycast1.png Traces a line between two points and outputs True if the line hits anything, the position of intersection, and the object it hit. (Think of it as a laser, you stand in the starting position and shoot a laser to the end position.) Inputs: * From: the start of the line. * To: the end of the line. Outputs: * Hit?: Returns whether the line hits an object. * Hit Pos: The point where the object is detected, or [0, 0, 0] if it..."
- 19:0819:08, 16 May 2024 diff hist +955 N Random Created page with "A number randomizer. File:Random1.png Inputs: * Min: The minimum amount the block chooses from. * Max: The maximum amount the block chooses from. Outputs: * Random: The randomly selected number. == Notes == * The Min input is included while the Max input is *excluded*, meaning: if the min and max inputs are 0 and 5 respectively, it may generate a number within 0 to 5, possibly 0, but never 5. * The random block will generate a new value every time it is exe..."
- 19:0819:08, 16 May 2024 diff hist +343 N Random Seed Created page with "Sets the seed used by the Random script. /uploads/Random Seed.png Normally, values that the Random script ouputs will be diffrent each time. By changing the Random Seed, each following executed Random script will output the same values every time. File:Random-Seed-seed-no-seed.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +338 N Power Created page with "File:Power1.png Raises a number to the power of an exponent. File:Screenshot_2022-02-15-09-58-25-13_6c69499164362a0dbe2f1dfe7c62199a.jpg == Note == If you want to find the root of a number, you must invert the exponent. File:Screenshot_2022-02-15-10-11-42-24_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +1,087 N Play Sound Created page with "File:Play_Sound.png Plays a sound effect with optional volume and pitch inputs and outputs the channel the sound is played on. Use the settings to change which sound effect is played. Inputs: * Volume: ranges from 0 to 1 (inclusive). * Pitch: ranges from 0 to 4 (inclusive). Output: * Channel: When all channels are occupied or sounds are turned off in fancade settings, it outputs -1. Otherwise, it outputs a non-negative integer where the sound is occupied from 0..."
- 19:0819:08, 16 May 2024 diff hist +625 N Play Sensor Created page with "Executes the scripts connected to it only on the first tick. Useful for initialization. Output: * On Play: Triggers if the current tick is the first tick. /uploads/Play Sensor.png == Notes == * The Play Sensor is often described as "only executing once", but it actually can execute multiple times, if its "before" wire is connected to another block and it is triggered multiple times during the first tick. * Likewise, if its "before" wire is connected t..."
- 19:0819:08, 16 May 2024 diff hist +89 N Pass Through Created page with "A block that doesn't have a Collider. File:PassThrough.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +216 N OR Created page with "File:OR1.png If at least one of the inputs is `True`, then it outputs `True`. Otherwise, it outputs `False`. File:Screenshot_2022-02-14-07-25-33-16_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +1,195 N Number Created page with "File:Number1.png Outputs a given value. To change the value to output, select the block, then tap the button right below the open inventory (+) button, in the bottom right corner. File:changenumvalue.png This will open up the keypad, which you can use to change the value that the number script block will output. == Notes == The number is the most common data type. Numbers are represented by blue wires. Numbers are stored as 32-bit floats. To be precise, th..."
- 19:0819:08, 16 May 2024 diff hist +160 N Normalize Created page with "File:Normalize1.png Outputs a vector with the same direction as the input vector, but a length of 1. (Also known as a *unit vector*.) Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +204 N Negate Created page with "File:Negate1.png Negates the input number. A positive number turns negative and vice versa. File:Screenshot_2022-02-16-18-23-43-80_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +156 N NOT Created page with "File:NOT1.png Outputs the opposite of its input. File:Screenshot_2022-02-14-07-39-48-31_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +183 N Multiply Created page with "File:Multiply1.png Outputs the product of the two input numbers. File:Screenshot_2022-02-16-17-03-44-85_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +866 N Modulo Created page with "Outputs the remainder of a division calculation. File:Modulo1.png Inputs: * A: The value to be divided. * B: Value to divide A by. Output: * Mod: The remainder of the division calculation A/B. == Notes == * If the calculation doesn't have a remainder, the Modulo will be **0**. == Examples == Division: 5 / 2 = 2.5 10 / 5 = 2 Modulo: 5 % 2 = 1 10 % 5 = 0 Uses: * Do every X frames: * With the accompany of the Current..."
- 19:0819:08, 16 May 2024 diff hist +148 N Min Created page with "File:Min1.png Outputs the smaller input. File:Screenshot_2022-02-14-07-52-01-65_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +2,400 N Menu Item Created page with "The Menu Item block is a script block which was added on Fancade 1.6. When it is executed at least once it activates the shop system adding a shop to the game which is *only accessible when you win or lose the game.* The main use of this script is to add items to a shop which should only be done **once** per item. To learn how to use it, see here. File:Menu_Item.png == Notes == Though this new script made a great new mechanic for Fa..."
- 19:0819:08, 16 May 2024 diff hist +149 N Max Created page with "File:Max1.png Outputs the bigger number. File:Screenshot_2022-02-14-07-52-38-47_6c69499164362a0dbe2f1dfe7c62199a.jpg/ Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +213 N Make Vector Created page with "/uploads/Make Vector.png Converts three numbers into a vector. File:Screenshot_2022-02-16-17-45-34-84_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +219 N Make Rotation Created page with "/uploads/Make Rotation.png Converts three numbers into a rotation. File:Screenshot_2022-02-16-17-44-41-81_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +368 N Lose Created page with "Causes the player to lose (or die in-game). File:Lose1.png == Settings == File:loseinstan.png When pressed a new menu will open up: File:instantbutton.png This will add a delay to the lose animation, if you press the arrows you can increase the delay by 1 frame up to a maximum of 120 frames or 2 seconds. == Related == Win Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +2,227 N Loop Created page with "File:Loop1.png The Loop block is used to run a script multiple times in the same frame. Often used for processing every element in a list. Inputs * Start: The Loop block starts looping from the Start input. * Stop: Then it stops looping once it reaches the Stop input. Outputs * Do: Plug this to the script that you want to run for every loop. * Counter: Outputs the current loop number counting from the Start value. If the Start value is greater tha..."
- 19:0819:08, 16 May 2024 diff hist +1,188 N Look Rotation Created page with "/uploads/Look Rotation.png Create a rotation pointing in a given direction, e.g. rotating a character to look that way. Inputs: * Direction: The direction you want to look in * Up: Which way is up for the looking character (defaults to [0, 1, 0] if unwired) Outputs: * Rotation: A rotation "looking" in the direction. == Notes == * When converting one direction (vector) into a rotation, there is actually an infinite number of solution..."
- 19:0819:08, 16 May 2024 diff hist +1,382 N Logarithm Created page with "Outputs the logarithm of a number by a given base. File:Logarithm1.png Inputs * Number: The target number * Base: The base to raise (defaults to [*e*](https://en.wikipedia.org/wiki/E_(mathematical_constant)) if unwired) Outputs * Logarithm: The Exponent in the (Base ^ Exponent = Number) == Notes == Logarithm is used as an inverse function for the function Power. This function is most commonly used for board game AIs. If you manage to learn how to make an AI,..."
- 19:0819:08, 16 May 2024 diff hist +3,142 N List Element Created page with "Gets a value stored in a list, with index starting from 0 (max 1,048,575). The output can also wired to Set Reference to store a value in a list. It's what you call an "Array" in other programming language. /uploads/List Element.png Input: * Variable: The variable for the list. It only accepts the output of a Get Variable or another List Element, any output from a different block and the script won't plug. * Index: Every value in a list is assigned..."
- 19:0819:08, 16 May 2024 diff hist +1,164 N Linear Spring Created page with "Makes the constraint springy, like a car's suspension. /uploads/Linear Spring.png Inputs: * Constraint: This script must use the output of an add constraint script. This can be done directly (connect the two by a wire), or the linear spring script can be connected to a constraint variable or list. * Stiffness: A vector value. Determines the amount of force that that will be used to "spring" the objects towards their original posit..."
- 19:0819:08, 16 May 2024 diff hist +154 N Linear Motor Created page with "Makes the constraint move. Use Force `0,0,0` to disable the motor again. /uploads/Linear Motor.png Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +205 N Linear Limits Created page with "Changes a constraint's linear limits. Set the lower limit higher than the upper limit for completely un-limited movement. /uploads/Linear Limits.png Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +1,188 N Line vs Plane Created page with "Finds the point at which a line intersects a plane. /uploads/Line vs Plane.png Inputs: * Line From: Line's starting position * Line To: Line's end position * Plane Point: A position in the plane (defaults to 0,0,0 if unwired) * Plane Normal: A vector perpendicular to the plane (i.e. the direction the plane is pointing at, or the angle of the plane) Outputs: * Intersection: The point where the line intersects the plane (or nan if there..."
- 19:0819:08, 16 May 2024 diff hist +241 N Less Than Created page with "/uploads/Less Than.png Outputs `True` if the first input number is smaller than the second input number File:Screenshot_2022-02-18-18-19-23-55_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +763 N Late Update Created page with "Late Update executes scripts _after_ the physics simulation. /uploads/Late Update1.png Outputs: * After Physics: The scripts you want to run after physics. == Notes == * Each frame Fancade does the following: 1. Run scripts 2. Simulate physics 3. Run Late Update scripts == Examples == A. Position an object exactly "glued to" a physics object File:Screenshot_20210127-091113_6c69499164362a0dbe2f1dfe7c62199a.jpg B. Init..."
- 19:0819:08, 16 May 2024 diff hist +1,149 N LERP Created page with "Linear Interpolation (LERP) returns a value between two others at a point of linear scale. Rotation = From + (To - From) × Amount File:LERP1.png Input: * From: The value to transition from. * To: The value to transition to. * Amount: How far to transition. Output: * Rotation: The value between the From and To input, at a linear scale (defined by Amount input). == Example == The most common use case is to smoothly transition from one rotation to another. Fil..."
- 19:0819:08, 16 May 2024 diff hist +2,524 N Joystick and Button Created page with "with these you can use a joystick and buttons to controls things in your games. File:Joystick_And_Button.jpg You can use several combinations, as shown in the image bellow. File:JOYBUTONEX.png But there's a limit to keep in mind, imagine a joystick is worth 2 points, and buttons are 1 point, then the limit is that you can only use up to 4 points. So you can only have: * 2 joysticks * 1 joystick and 2 buttons * 1 to 4 buttons = Joystick = Adds joystick(s) in..."
- 19:0819:08, 16 May 2024 diff hist +1,150 N Inverse Created page with "Outputs the inverse of the input rotation. File:Inverse1.png Input: * Rot: rotation value Output: * Rot Inverse: the inverse of the rotation == Details == The inverse of a rotation is the rotation that, when combined with the original rotation, equals the identity rotation (0, 0, 0). In math, the inverse of a value with respect to some operation is the value that "undoes" the operation. For example, the additive inverse of `5` is `-5`, since `5..."
- 19:0819:08, 16 May 2024 diff hist +2,705 N Inspect Created page with "Displays the value given to the input, allowing you to see the value in a variable. [[File:]] == Importance == This block is essential for debugging your games, as it allows you to know what value your variables have at all times. So you can see if a position is correct, or if a loop it's reaching the desired number. If you connect its only input to a variable or value block, the data will be printed on its top. [[File:]] == Types of inspect == There are 5 differen..."
- 19:0819:08, 16 May 2024 diff hist +221 N Increase Number Created page with "/uploads/Increase Number1.png Increases the input variable by 1. File:Screenshot_2022-02-17-07-59-55-95_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +287 N If Created page with "File:If1.png Checks its Truth input and executes the corresponding output. File:Screenshot_2022-02-18-18-28-54-26_6c69499164362a0dbe2f1dfe7c62199a.jpg == Notes == * When no condition is attached, neither output wire will execute. Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +247 N Greater Than Created page with "/uploads/Greater Than.png Outputs `True` if the first input number is bigger than the second input number. File:Screenshot_2022-02-18-18-18-39-68_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +143 N Get Velocity Created page with "Outputs a physical object's current speed (velocity) and angular speed (spin). /uploads/Get Velocity.png Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +206 N Get Variable Created page with "Outputs the value that was previously stored by a Set Variable with the same name. Further information about variables is in the Set Variable page. File:Get_Variable1.png Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +902 N Get Size Created page with "Outputs the size of an object as min and max. If the inputs are left unwired, outputs the size of the world. It's important to note, it measures the size based on the number of cubic "block spaces" the object occupies in the level editor, **not** the actual number of filled-in voxels. So an 8x8x8 cube of voxels (completely filling one block space) and a tiny 1x1x1 cube of voxels (a single voxel) will both show the same size of (-0.5, -0.5, -0.5) min and (0.5, 0.5, 0.5)..."
- 19:0819:08, 16 May 2024 diff hist +285 N Get Position Created page with "Given an object, outputs its position and rotation. If the pink input is unwired, outputs the position of the block itself (or the block it is inside). Specifically, it gives the position of the object's center of mass. /uploads/Get Position.png Category:Blocks "
- 19:0819:08, 16 May 2024 diff hist +174 N Floor Created page with "File:Floor1.png Rounds a number *down* to the closest integer. File:Screenshot_2022-02-16-17-49-08-90_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +216 N Equal Vectors Created page with "/uploads/Equal Vectors.png Outputs `True` if both vector inputs are equal. File:Screenshot_2022-02-15-09-50-30-53_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +234 N Equal Truths Created page with "/uploads/Equal Truths.png Outputs `True` if both truth inputs are equal. File:Screenshot_2022-02-16-17-29-08-14_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "