Component_MaskAnimation Class
Executes a mask-animation on a game-object.
Item Index
Methods
Methods
maskIn
(
-
mask
-
duration
-
easingType
-
[callback]
Lets the game object appear on screen using a masking-effect.
Parameters:
-
mask
gs.MaskThe mask used for the animation.
-
duration
NumberThe duration in frames.
-
easingType
ObjectThe easing-type.
-
[callback]
Function optionalAn 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.MaskThe mask used for the animation.
-
duration
NumberThe duration in frames.
-
easingType
ObjectThe easing-type.
-
[callback]
Function optionalAn optional callback-function called when the animation is finished.
maskTo
(
-
mask
-
duration
-
easingType
-
[callback]
Description follows...
Parameters:
-
mask
gs.MaskThe mask used for the animation.
-
duration
NumberThe duration in frames.
-
easingType
ObjectThe easing-type.
-
[callback]
Function optionalAn optional callback-function called when the animation is finished.
toDataBundle
()
Serializes the mask-animation into a data-bundle.
update
()
Updates the mask-animation.