TweenCustomInteger2

Family: Tweening · 2 forms

What it does

TweenCustomInteger2 takes tweenID (an integer), and answers an integer. That is the first of 2 forms. tweenID is the id of a Tween object, obtained elsewhere in the Tweening family.

Syntax

1
TweenCustomInteger2(tweenID integer) → integer
2
TweenCustomInteger2(tweenID integer, begin integer, end integer, interpolation integer)

Parameters

NameTypeIn forms
tweenIDintegerall
begininteger2
endinteger2
interpolationinteger2

What each form returns

1TweenCustomInteger2(tween)integer
2TweenCustomInteger2(tween, 1, 1, 1)nothing

Example · generated

Form 1, the command hands back the id

tween = CreateTweenCustom(1.0)DO  Print(TweenCustomInteger2(tween))  Sync()LOOP

Form 2, you choose the id yourself

tween = CreateTweenCustom(1.0)TweenCustomInteger2(tween, 1, 1, 1)DO  Sync()LOOP

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