StartTween

From The Official Visionaire Studio: Adventure Game Engine Wiki

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)