# UpdateTweenSprite

## Description

Updates a specific tween that has been started. The time value allows you to control how quickly the tween advances, and in most cases the result of GetFrameTime should be used. The time can be set negative so that the tween will play in reverse until it reaches its start point, however it will not stop playing when it reaches the beginning and will instead wait for the time to become positive again or wait for you to stop it manually. The tween must have already been started on the given sprite with PlayTweenSprite or nothing will happen. If you have started a lot of tweens playing, then updating each tween individually will be a lot more expensive than using UpdateAllTweens.

## Definition

UpdateTweenSprite( tweenID, spriteID, fTime )

void agk::UpdateTweenSprite( UINT tweenID, UINT spriteID, float fTime )

## Parameters

- tweenID - The ID of the tween to update
- spriteID - The ID of the sprite to update
- fTime - The time to advance the tween