StartObjectTween
From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 21:28, 30 September 2014 by Vis apiuser (talk) (Created page with "==startObjectTween== <div class="command-min-version-info">Available since: <span class="command-min-version">v4.0</span></div> <div class="command-doc">Start tween on data...")
Contents
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)