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


startAnimation(animation [, reverse])


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.


Example 1: Start an animation.

local myAnimation = Animations["animation_name"]

Example 2: Start an animation in reverse order

startAnimation(Animations["animation_name"], true)