# SetSkeleton2DAnimationFrame

## Description

Sets the skeleton to a specific point in the animation based on time, with optional tweening time. The tween time will smoothly interpolate the skeleton from its current state to the chosen frame of the specified animation so that there is no sharp transition.

## Definition

SetSkeleton2DAnimationFrame( iSkeleton, anim, time, tweentime )

void agk::SetSkeleton2DAnimationFrame( UINT iSkeleton, const char* anim, float time, float tweentime )

## Parameters

- iSkeleton - ID of the skeleton to modify
- anim - The name of the animation to use
- time - The time offset to use to set the frame of the skeleton
- tweentime - Number of seconds to transition from its current state to the given frame