StartObjectTween

From The Official Visionaire Studio: Adventure Game Engine Wiki

startObjectTween

Available since: v4.0
Start tween on data structure object

Lua Syntax:

startObjectTween(target, targetfield, from, to, duration, easing type [, repeat, reverse repeat])

Arguments

target

"object path"|"object id"|object - target object

targetfield

int - target field, supports int, float, point

from

VARIANT -

to

VARIANT -

duration

float -

easing type

int -

repeat

true|false -

reverse repeat

true|false -

Flags

Return Values

None.

Examples

Example 1: scroll scene to 100,0

startObjectTween(game,VGameScrollPosition,game:getPoint(VGameScrollPosition),{x=100,y=0},3000,easeBackInOut)