playAnimationForDuration

fun playAnimationForDuration(duration: TimeSpan, spriteAnimation: SpriteAnimation? = currentAnimation, spriteDisplayTime: TimeSpan = getDefaultTime(spriteAnimation), startFrame: Int = -1, reversed: Boolean = false)