EasingStyle (Enum): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>MrNicNac Finished testing. Added all explanations. |
>Tenal No edit summary |
||
(12 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 1px solid #f00;" | {| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 1px solid #f00;" | ||
| | {{EnumTitle|colspan=3|The EasingStyle [[Enum]] determines the way in which tweening will act. It has 7 numbers:}} | ||
|- | |- | ||
| bgcolor="#AB5454"|<span style="color:white">'''Enum'''</span> | | bgcolor="#AB5454"|<span style="color:white">'''Enum'''</span> | ||
Line 16: | Line 16: | ||
|2 | |2 | ||
|Back | |Back | ||
| | |Once the GUI reaches its target point, it will go over it just a bit (depending on the time argument), and then return to the target position. | ||
|- | |- | ||
|3 | |3 | ||
Line 38: | Line 38: | ||
|Acts as if the GUI were being stretched like rubber and then launches towards its end point. | |Acts as if the GUI were being stretched like rubber and then launches towards its end point. | ||
|} | |} | ||
[[Category:Enums]] |
Latest revision as of 03:24, 7 February 2012
The EasingStyle Enum determines the way in which tweening will act. It has 7 numbers: | ||
Enum | Name | Description |
0 | Linear | Stays the same speed throughout the process of tweening. The speed is determined by the time argument. |
1 | Sine | Gradually slows down until the end point is reached. Main speed is determined by the time argument. |
2 | Back | Once the GUI reaches its target point, it will go over it just a bit (depending on the time argument), and then return to the target position. |
3 | Quad | Starts off fast and gradually slows down after the GUI reaches 1/4 of the way towards the end point. |
4 | Quart | Starts off fast and gradually slows down after the GUI reaches 3/4 of the way towards the end point. |
5 | Quint | Starts off fast and gradually slows down after the GUI reaches 1/2 of the way towards the end point. |
6 | Bounce | Bounces off the end point a couple times (speed depends on the time argument) and returns to the end position. |
7 | Elastic | Acts as if the GUI were being stretched like rubber and then launches towards its end point. |