Difference between revisions of "StartObjectTween"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(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...")
 
(Redirected page to Global Command: startObjectTween)
 
Line 1: Line 1:
==startObjectTween==
+
#REDIRECT [[Global Command: 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 structure object</div>
 
 
 
Lua Syntax:
 
<pre class="command-syntax">startObjectTween(target, targetfield, from, to, duration, easing type [, repeat, reverse repeat])</pre>
 
===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
 
<syntaxhighlight>
 
startObjectTween(game,VGameScrollPosition,game:getPoint(VGameScrollPosition),{x=100,y=0},3000,easeBackInOut)
 
</syntaxhighlight>
 

Latest revision as of 12:35, 19 May 2023