# AddTweenChainChar

## Description

Applies the given tween ID to a given character in a text object with an optional delay and adds it to the end of the chain. A tween can be added to multiple characters at the same time, simply call this command again with a different character or text ID. The character will not be modified until all preceding tweens in this chain have finished and 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 character the character will adjust its interpolation accordingly. Modifying the duration whilst playing is undefined and not compatible with chains.

## Definition

AddTweenChainChar( chainID, tweenID, textID, charID, delay )

void agk::AddTweenChainChar( UINT chainID, UINT tweenID, UINT textID, UINT charID, float delay )

## Parameters

- chainID - ID of the chain to add to
- tweenID - ID of the tween to add
- textID - ID of the text object containing the character
- charID - Index of the character to modify, indices start at 0
- delay - Number of seconds to wait before playing this tween when it is triggered