CreateTweenChain

Family: Tweening · 2 forms

What it does

CreateTweenChain brings a Tweening object into being: it is how the rest of the program comes to have one. It takes chainID (an integer), and returns nothing. That is the first of 2 forms. chainID is the id you are giving a Chain object: every later call names it by that number.

Syntax

1
CreateTweenChain(chainID integer)
2
CreateTweenChain() → integer

Parameters

NameTypeIn forms
chainIDinteger1

What each form returns

1CreateTweenChain(1)nothing
2tweenChain = CreateTweenChain()integer

Example · generated

Form 1, you choose the id yourself

CreateTweenChain(1)DO  Sync()LOOP

Form 2, the command hands back the id

tweenChain = CreateTweenChain()DO  Sync()LOOP

CreateTweenChain is called with values of the types its signature asks for. 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