# PlayTweenSprite

## Description

Applies the given tween ID to a given sprite ID with an optional delay and starts playing it. A tween can be played on multiple sprites at the same time, simply call this command again with a different sprite ID. The sprite will not be modified until the delay time has passed, at which point the tween will start at the begin values and move towards the end values over the tween duration. If a tween end value is modified whilst the tween is playing on a sprite the sprite will adjust its interpolation accordingly. Modifying the duration whilst playing is undefined and not compatible with chains.

## Definition

PlayTweenSprite( tweenID, spriteID, delay )

void agk::PlayTweenSprite( UINT tweenID, UINT spriteID, float delay )

## Parameters

- tweenID - ID of the tween to use
- spriteID - ID of the sprite to modify
- delay - Number of seconds before the tween should start playing