API Docs for:
Show:

Component_ShakeAnimation Class

Module: gs

Executes a horizontal shake-animation on a game-object.

Item Index

Methods

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

(
  • range
  • speed
  • duration
  • easingType
  • [callback]
)

Starts the shake-animation.

Parameters:

  • range gs.Range

    The horizontal shake-range.

  • speed Number

    The shake-speed.

  • 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 shake-animation into a data-bundle.

update

()

Updates the shake-animation.