Sin: Difference between revisions
no edit summary
-u ndefined- (talk | contribs) m (Use infobox, slightly remove clutter) |
RandomName (talk | contribs) No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 22: | Line 22: | ||
Ever wondered how to make those ultra smooth floating coin animations like in Roper? Here's how to do it: | Ever wondered how to make those ultra smooth floating coin animations like in Roper? Here's how to do it: | ||
{{Image|Sin_example_coin_animation.png}} | |||
* Sin and [[Cos]] can be used for such back and forth animations like this. You can also multiply the output of sin or cos by a number to move it in a larger or smaller scale. If you manage to utilize this function, you can even make any type of animations very smooth (e.g. walking animation, gun Recoil animation, moving platforms, etc.)! | * Sin and [[Cos]] can be used for such back and forth animations like this. You can also multiply the output of sin or cos by a number to move it in a larger or smaller scale. If you manage to utilize this function, you can even make any type of animations very smooth (e.g. walking animation, gun Recoil animation, moving platforms, etc.)! | ||
[[Category:Blocks]] | [[Category:Blocks]] | ||