API Docs for:
Show:

Component_MaskAnimation Class

Module: gs

Executes a mask-animation on a game-object.

Item Index

Methods

maskIn

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

Lets the game object appear on screen using a masking-effect.

Parameters:

  • mask gs.Mask

    The mask used for the animation.

  • duration Number

    The duration in frames.

  • easingType Object

    The easing-type.

  • [callback] Function optional

    An optional callback-function called when the animation is finished.

maskIn

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

Lets the game object disappear from screen using a masking-effect.

Parameters:

  • mask gs.Mask

    The mask used for the animation.

  • duration Number

    The duration in frames.

  • easingType Object

    The easing-type.

  • [callback] Function optional

    An optional callback-function called when the animation is finished.

maskTo

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

Description follows...

Parameters:

  • mask gs.Mask

    The mask used for the animation.

  • duration Number

    The duration in frames.

  • easingType Object

    The easing-type.

  • [callback] Function optional

    An optional callback-function called when the animation is finished.

toDataBundle

()

Serializes the mask-animation into a data-bundle.

update

()

Updates the mask-animation.