Global Command: startAnimation

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 12:59, 3 May 2023 by EK (talk | contribs) (Created page with "Starts an animation. {| class="ts" |- | style="width:15%" | Related functions | stopAnimation |} == Syntax == <syntaxhighlight lang="lua">...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Starts an animation.

Related functions stopAnimation


Syntax

startAnimation(animation [, reverse])


Parameters

Parameter Type Description
animation TVisObj Visionaire object representing an animation.
reverse boolean If true the animation is played backwards. Default value is false.


Return values

Type Description
TVisObj The Visionaire object representing the active animation.


Examples

Example 1: Start an animation.

local myAnimation = Animations["animation_name"]
startAnimation(myAnimation)


Example 2: Start an animation in reverse order

startAnimation(Animations["animation_name"], true)