StartTween

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 21:28, 30 September 2014 by Vis apiuser (talk) (Created page with "==startTween== <div class="command-min-version-info">Available since: <span class="command-min-version">v4.0</span></div> <div class="command-doc">Start tween on lua variabl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

startTween

Available since: v4.0
Start tween on lua variable, easing functions:

Lua Syntax:

startTween(target, from, to, duration, easing type [, repeat, reverse repeat, on finish])

Arguments

target

"string" - variable target

from

float -

to

float -

duration

float -

easing type

int -

repeat

true|false -

reverse repeat

true|false -

on finish

"string" -

Flags

Return Values

None.

Examples

Example 1: tween variable q to 3

startTween("q", q, 3, 3000, easeBackInOut)