Difference between revisions of "StartTween"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(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...")
 
(Redirected page to Global Command: startTween)
 
Line 1: Line 1:
==startTween==
+
#REDIRECT [[Global Command: 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 variable, easing functions: </div>
 
 
 
Lua Syntax:
 
<pre class="command-syntax">startTween(target, from, to, duration, easing type [, repeat, reverse repeat, on finish])</pre>
 
===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
 
<syntaxhighlight>
 
startTween("q", q, 3, 3000, easeBackInOut)
 
</syntaxhighlight>
 

Latest revision as of 12:36, 19 May 2023