Optional
options: FXRSerializeOptionsStatic
basicCreates a new sequence property that linearly transitions from one value to another.
Controls whether the animation should loop or not.
The duration of the animation.
The value at the start of the animation.
The value at the end of the animation.
Static
fromStatic
fromJSONStatic
powerCreates a new linear property that approximates a power function.
Controls whether the animation should loop or not.
The exponent used in the power function. For example, setting this to values greater than 1 will make the property value change slowly at the start, but get faster and faster until it reaches the end.
How many keyframes to use for the approximation. Must be greater than or equal to 2. Using higher values will produce a smoother curve. Setting it to 2 will make it linear, which means you might as well use the basic method instead of this.
The duration of the animation.
The value at the start of the animation.
The value at the end of the animation.
Static
sineCreates a new linear property that approximates a sine wave.
The value used when the sine wave is at its minimum.
The value used when the sine wave is at its maximum.
The period of the sine wave.
The phase shift of the sine wave. 1 shifts it by one period.
The number of stops to use to approximate the sine wave. Higher values result in a smoother curve. Defaults to 21.
Returns an equal property that works with the given game.
If the property has multiple modifiers, there is a chance that the output of this method will not be perfectly equal, but it should still be close.