Randomize Animation
fun <T : GameComponentView> RandomizeAnimation( gameComponentView: T, visuals: List<Visual>, toVisual: Visual, duration: Int = DEFAULT_ANIMATION_DURATION, speed: Int = DEFAULT_ANIMATION_SPEED)
Content copied to clipboard
Creates a RandomizeAnimation for the given GameComponentView.
Parameters
T
Generic GameComponentView.
game Component View
GameComponentView to animate.
duration
Duration in milliseconds. Default: DEFAULT_ANIMATION_DURATION.
speed
Count of steps. Default: DEFAULT_ANIMATION_SPEED.