Jump to content

Sin: Difference between revisions

111 bytes removed ,  3 June 2024
no edit summary
m (Correct to Image template)
No edit summary
 
Line 23: Line 23:


{{Image|Sin_example_coin_animation.png}}
{{Image|Sin_example_coin_animation.png}}
(Note that you don't have to store the input in a rotation. A number or [[Current Frame]] will do just fine.)


* 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]]