# CreateTweenSprite

## Description

Creates a sprite tween with a given duration and returns an ID for it. This tween is merely a template that can be applied to multiple sprites or chains at the same time. All tween types share the same ID space, so a sprite tween of ID 1 cannot exist at the same time as a text tween with ID 1. You can set multiple parameters for this tween, such as X position and Angle, that will all move from their start values to their end values over the given duration.

## Definition

integer CreateTweenSprite( duration )

UINT agk::CreateTweenSprite( float duration )

CreateTweenSprite( tweenID, duration )

void agk::CreateTweenSprite( UINT tweenID, float duration )

## Parameters

- duration - The duration of the tween in seconds
- tweenID - ID of the tween