UpdateTweenSprite

Family: Tweening · One form

What it does

UpdateTweenSprite writes to a Tweening object: it updates rather than reads. It takes tweenID (an integer), spriteID (an integer) and fTime (a float), and returns nothing. tweenID is the id of a Tween object, obtained elsewhere in the Tweening family.

Syntax

UpdateTweenSprite(tweenID integer, spriteID integer, fTime float)

Parameters

NameType
tweenIDinteger
spriteIDinteger
fTimefloat

Every form returns

nothing

Example · generated

tween = CreateTweenSprite(1.0)image = LoadImage("assets/sprite.png", 1)sprite = CreateSprite(image)UpdateTweenSprite(tween, sprite, 1.0)DO  Sync()LOOP

CreateTweenSprite, LoadImage and CreateSprite are there to give the call something to act on; UpdateTweenSprite is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

149 commands in Tweening