# CreateTweenChain

## Description

Creates a tween chain that can be used to order tweens so they play one after the other. A tween chain can contain multiple sprites, characters, objects, etc, so that a camera tween can be triggered after a sprite tween has finished or vice versa. Multiple chains can be applied to the same sprites, objects, or others as long as the chains do not modify the same parameter at the same time. For example if chain 1 starts by modifying a sprites X value, and is played at the same time as chain 2 which also starts modifying the X value of the same sprite one chain will overwrite the changes of the other. Otherwise multple chains on the same sprite will work correctly.

## Definition

integer CreateTweenChain()

UINT agk::CreateTweenChain()

CreateTweenChain( chainID )

void agk::CreateTweenChain( UINT chainID )

## Parameters

- chainID - ID of the chain