Login

Fancade Wiki

Updated Modulo.md (markdown)

... ...
@@ -9,7 +9,7 @@ Inputs:
9 9
10 10
Output:
11 11
12
* Mod: The remainder of the division calculation A/B.
12
* Mod: The remainder of the [[division|Divide]] calculation A/B.
13 13
14 14
## Notes
15 15
* If the calculation doesn't have a remainder, the Modulo will be **0**.
... ...
@@ -28,7 +28,6 @@ Output:
28 28
Uses:
29 29
30 30
* Do every X frames:
31
* With the accompany of the [[Current Frame]] block in input A, you can specify an event that takes places every X frames. For example, because 60 frames is 1 second, input B can be 60, and if the modulo is equal to 0, your event will be executed every 1 second.
31
* With the accompany of the [[Current Frame]] block in input A, you can specify an event that takes places every X frames. For example, because 60 frames can be converted into 1 second, input B could be 60, and when this script is run, it is going to execute it every 60th frame (a second), where the output of the modulo equals to 0.
32 32
33
[[/uploads/com.martinmagni.fancade_Screenshot_2021.02.06_17.51.19.png]]
34
_Image source:_ [[How do I execute a script every second?]]
33
[[/uploads/com.martinmagni.fancade_Screenshot_2021.02.06_17.51.19.png]]
... ...
\ No newline at end of file
Fancade Wiki