Component_RotateAnimation Class
Executes a rotate-animation on a game-object.
Item Index
Methods
Methods
rotateTo
(
-
angle
-
duration
-
easingType
-
[callback]
Starts the rotate-animation.
Parameters:
-
angle
NumberThe target angle
-
duration
NumberThe duration in frames.
-
easingType
ObjectThe easing-type.
-
[callback]
Function optionalAn optional callback called if the animation is finished.
skip
()
Skips the animation. That is used to skip an animation if the user wants to skip very fast through a visual novel scene.
start
(
-
direction
-
speed
-
duration
-
easingType
-
[callback]
Starts the rotate-animation.
Parameters:
-
direction
gs.RotationDirectionThe rotation direction.
-
speed
NumberThe rotation speed in degrees per frame.
-
duration
NumberThe duration in frames.
-
easingType
ObjectThe easing-type.
-
[callback]
Function optionalAn optional callback called if the animation is finished.
toDataBundle
()
Serializes the rotate-animation into a data-bundle.
update
()
Updates the rotate-animation.