Widget/API/SetAnimation

Sets the parameters needed for playing a texture animation.

Arguments

 * texImage
 * string - Filename and path of texture to be used for animation.
 * speed
 * number - Playback speed in frames per second.
 * framesPerWidth
 * number - Number of animation frames spanning the width of the image file.
 * index
 * number - Frame index to start animation from.
 * numFrames
 * number - Number of frames to play for this animation.

Returns

 * None

Related Pages

 * Widget (Overview)