TweenSpriteXByOffset

Family: Tweening · One form

What it does

TweenSpriteXByOffset writes to a Tweening object: it sets rather than reads. It takes tweenID (an integer), beginX (a float), endX (a float) and interpolation (an integer), and returns nothing. tweenID is the id of a Tween object, obtained elsewhere in the Tweening family.

Syntax

TweenSpriteXByOffset(tweenID integer, beginX float, endX float, interpolation integer)

Parameters

NameType
tweenIDinteger
beginXfloat
endXfloat
interpolationinteger

Every form returns

nothing

Example · generated

tween = CreateTweenSprite(1.0)TweenSpriteXByOffset(tween, 1.0, 1.0, 1)DO  Sync()LOOP

CreateTweenSprite is there to give the call something to act on; TweenSpriteXByOffset 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