Global Command: startAnimation

From The Official Visionaire Studio: Adventure Game Engine Wiki

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)