User contributions for Nikitaivanov
A user with 546 edits. Account created on 29 April 2024.
16 May 2024
- 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 "
- 19:0719:07, 16 May 2024 diff hist +677 N Equal Objects Created page with "/uploads/Equal Objects.png Outputs `True` if both object inputs are equal. Inputs: * Obj1: first object. Defaults to `None`. * Obj2: second object. Defaults to `None`. Output: * Obj1 = Obj2: whether two objects are the same. == Notes == * This checks if the two inputs are the same *object*, not whether they're the same *block type*. E.g. two Grass Block blocks, placed separately in the world, will create two different and independ..."
- 19:0719:07, 16 May 2024 diff hist +484 N Equal Numbers Created page with "/uploads/Equal Numbers.png Outputs `True` if both number inputs are equal, and false if they are not. File:Screenshot_2022-02-15-09-49-13-04_6c69499164362a0dbe2f1dfe7c62199a.jpg == Notes == The numbers do not have to be actually equal to be considered equal, they have to be _close enough_. File:equal-not-precise.png If high precision is required, the following script can be used File:precise-equals.png Category..."
- 19:0719:07, 16 May 2024 diff hist +2,881 N Dot Product Created page with "Calculates the dot product of the two input vectors, and outputs a number. /uploads/Dot Product1.png == Details == The Dot Product is a way of multiplying two vectors together, and is written as A · B. We can calculate it algebraically this way: A · B = Ax × Bx + Ay × By + Az × Bz We multiply the x's, multiply the y's, multiply the z's, and then sum them all together. For more advanced readers, it can also be calculated thi..."
- 19:0719:07, 16 May 2024 diff hist +187 N Divide Created page with "File:Divide1.png Divides the first input number by the second input number. File:Screenshot_2022-02-16-16-11-49-17_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +138 N Distance Created page with "File:Distance1.png Outputs the distance between two vectors. File:InShot_20220218_181010446.jpg Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +193 N Destroy Object Created page with "Destroys an object created by Create Object. **Only for copies, it does not destroy blocks placed manually by the user!** /uploads/Destroy Object.png Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +221 N Decrease Number Created page with "/uploads/Decrease Number1.png Decreases the input variable by 1. File:Screenshot_2022-02-17-07-59-23-56_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +286 N Current Frame Created page with "File:Current_Frame.png Outputs the current frame count. On play, it outputs 0 and increases by 1 with every frame. == Notes == There are 60 frames in 1 second, so you can divide the output of frame by 60 and you'll get a timer in seconds. File:time.png Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +862 N Cross Product Created page with "The Cross Product calculates the cross product of the two input vectors, and outputs another vector. /uploads/Cross Product1.png == Details == The Cross Product is a way of multiplying two vectors together. We can calculate the Cross Product of two vectors this way, let's say that the cross product of A and B is vector C: Cx = Ay × Bx - Az × By\ Cy = Az × Bx - Ax × Bz\ Cz = Ax × By - Ay × Bx It outputs the vector that is perp..."
- 19:0719:07, 16 May 2024 diff hist +600 N Create Object Created page with "Creates a copy of the input object. /uploads/Create Object.png Input: * Original: The object to be copied. Output: * Copy: Returns the copy of the object. However this does not copy the scripts inside a block, only the _shell_ of the block. == Notes == Create Object, when inputted None, uses the last object created on this script. Making *too* many objects will affect performance negatively, so clone responsibly. There's also a limit of 4096 cr..."
- 19:0719:07, 16 May 2024 diff hist +656 N Cos Created page with "Computes the cosine of an angle in degrees. File:Cos1.png == Input/Output == Similar to the function Sin but instead, the output value starts from 1. Outputs value between 1 and -1 depending on the given input which, scales from angular (0°–360°) == Notes == Additionally, there are only 4 certain points where you can get a whole number: * 0°/360° = 1 * 90° = 0 * 180° = -1 * 270° = 0 To understand better, search for "[https://www.google.com/search?q=..."
- 19:0719:07, 16 May 2024 diff hist +378 N Comment Created page with "Use these to make notes that help explain your script to others, and your future self! File:screenshot2.png The limit on the amount of characters a note can hold is 15. _Comments, like all script blocks, only show in build mode (unless there are only comments and/or script blocks)._ _They are not designed to communicate with players of your game._ Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +264 N Combine Created page with "Combines two rotations into one. File:Combine1.png == Note == Note that the operation is 0%/not commutative, which means that changing the order of the [rotations](Rotation) can change the result. File:Screenshot_20220130-232951.png Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +1,141 N Collision Created page with "Checks the collision properties of the input object. Input: * 1st Object: The object that will send the collision data to this script. Output: * Collided: Triggers when the input object collides with another object, including the floor. * 2nd Object: The object that the input object collided with. It outputs "None" if collided with the floor. * Impulse: The impact force of the collision (how hard did they collide). Specifically, impulse is a change of momentum of an ob..."
- 19:0719:07, 16 May 2024 diff hist +174 N Ceiling Created page with "File:Ceiling1.png Rounds a number *up* to the closest integer. File:Screenshot_2022-02-15-06-50-07-11_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +215 N Break Vector Created page with "/uploads/Break Vector.png Converts a vector into three numbers. File:Screenshot_2022-02-15-07-01-13-30_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +481 N Break Rotation Created page with "/uploads/Break Rotation.png Converts a rotation into three numbers. File:Screenshot_2022-02-15-09-21-17-95_6c69499164362a0dbe2f1dfe7c62199a.jpg == Example == Break Rotation is rarely used in games. Its primary usage is for inverse trigonometric functions, such as arcsin, arccos, and arctan: (Excerpts from [Fanscript](https://play.fancade.com/5DFA8E0B24A5DA11)) File:break-rotation-invtrig.png Category:Bl..."
- 19:0719:07, 16 May 2024 diff hist +489 N Box Created page with "== Box == Basic template blocks used to create custom blocks. (Other blocks from decor and terrain too can be used for it instead.) File:box.jpg == Sphere == Similar to a box but with a slight difference, it has a more rounded or spherical Collider. File:sphere.jpg == Physics Variants == Box and Sphere both has a physics variants, the difference of physics ones to normal ones are they have a pre-applied physics to them. File:physics_block.jpg Cat..."
- 19:0719:07, 16 May 2024 diff hist +401 N Box Art Sensor Created page with "Executes the output only when generating the screenshot you see on the game's box. /uploads/Box Art Sensor.png == Note == If you are using a camera for the Box Art, make sure the box art sensor executes after any previous Set Camera scripts for the sensor to override them, otherwise the camera will not show properly in the Box Art. File:Example01.jpg Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +226 N Axis Angle Created page with "/uploads/Axis Angle.png Outputs a rotation of some degrees around the vector input. File:Screenshot_2022-02-17-07-50-43-14_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +292 N Angular Spring Created page with "Linear Spring, but for rotational movement. Each of the vectors corresponds to an axis the object can rotate around (respectively: the top arrow in the editor (X), up-down (Y), and the right arrow (Z)). /uploads/Angular Spring.png Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +156 N Angular Motor Created page with "Makes a constraint rotate. Use Force `0,0,0` to disable the motor again. /uploads/Angular Motor.png Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +703 N Angular Limits Created page with "Changes a constraint's angular limits. Set the lower limit higher than the upper limit for completely unlimited movement. Examples: * Lower 0,0,0 and Upper 180,0,0 allows the part to rotate up to 180 degrees (half of a full rotation) in one direction around the X axis (the right arrow when looking from the top down), similar to a lever * Lower 0,0,-360 and Upper 0,0,360 allows the part to rotate up to a full turn in both directions around the Z axis (the up arrow), simi..."
- 19:0719:07, 16 May 2024 diff hist +225 N Add Vectors Created page with "/uploads/Add Vectors.png Adds each vector component (X, Y, and Z value) individually. File:Screenshot_2022-02-15-06-25-43-52_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +214 N Add Numbers Created page with "/uploads/Add Numbers1.png Outputs the sum of the two input numbers. File:Screenshot_2022-02-15-06-35-52-14_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks "
- 19:0719:07, 16 May 2024 diff hist +718 N Add Force Created page with "Adds a force and/or a torque to an object. /uploads/Add Force.png == Inputs == * Object: The object you want to apply force to. * Force: The force to apply to that object. * Apply at: Where on the object you want to apply the force, it's applied at the center of mass by default. * Torque: The rotational equivalent of a linear force, changing the object's rotational motion. == Notes == * A torque force applied on the first frame, or the sa..."
- 19:0719:07, 16 May 2024 diff hist +1,013 N Add Constraint Created page with "A constraint is an invisible connection between 2 objects. Like when you connect a wheel to a stick, or the rope bridges in drive mad. You probably only want to do this once, on Play. /uploads/Add Constraint.png == Notes == Have you ever heard of hydraulics and motors? If not then let me explain it to you and the connection of it in this script: Hydraulic and Motors are both type of motors that produces different move..."
- 19:0719:07, 16 May 2024 diff hist +552 N Accelerometer Created page with "Outputs the tilt direction of the device. File:Accelerometer1.png Outputs: * Direction: Outputs the tilt direction of the device. == Notes == * The accelerometer makes the screen orientation unchangeable during gameplay when the direction output is connected to anything. == Examples == The accelerometer by itself is jumpy and not very smooth at all, this can be fixed with the next script! [[File:]] Combined with the second script, you can make labyrinth-style..."