API Docs for:
Show:

Component_RotateAnimation Class

Module: gs

Executes a rotate-animation on a game-object.

Item Index

Methods

rotateTo

(
  • angle
  • duration
  • easingType
  • [callback]
)

Starts the rotate-animation.

Parameters:

  • angle Number

    The target angle

  • duration Number

    The duration in frames.

  • easingType Object

    The easing-type.

  • [callback] Function optional

    An 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.RotationDirection

    The rotation direction.

  • speed Number

    The rotation speed in degrees per frame.

  • duration Number

    The duration in frames.

  • easingType Object

    The easing-type.

  • [callback] Function optional

    An optional callback called if the animation is finished.

toDataBundle

()

Serializes the rotate-animation into a data-bundle.

update

()

Updates the rotate-animation.