Difference between revisions of "StartAnimation"
From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "<div class="toccolours mw-collapsible mw-collapsed" style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%"> <b>Command History</b> <div class="mw-collapsible-co...") |
|||
Line 6: | Line 6: | ||
− | Allows you to | + | Allows you to play any animation; if the animation is already playing then the existing animation is returned! |
Syntax: | Syntax: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
− | + | startAnimation(animation [, reverse]) | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 17: | Line 17: | ||
Example 1: basic start action method | Example 1: basic start action method | ||
<syntaxhighlight enclose="div"> | <syntaxhighlight enclose="div"> | ||
− | -- | + | -- n/a: will add later! |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 40: | Line 24: | ||
<b><u>Arguments</u></b> | <b><u>Arguments</u></b> | ||
− | + | animation: link <br/> | |
− | The link to the | + | The link to the animation to be started! ("path"|"object_id"|"animation_name") |
Flags: none | Flags: none | ||
Return: visionaireObject <br/> | Return: visionaireObject <br/> | ||
− | The visionaire object representing the active | + | The visionaire object representing the active animation! |
− | {{i18n| | + | {{i18n|StartAnimation}} |
Revision as of 22:40, 6 March 2013
Command History
Available since v3.7
Allows you to play any animation; if the animation is already playing then the existing animation is returned!
Syntax:
startAnimation(animation [, reverse])
Example 1: basic start action method
-- n/a: will add later!
Arguments
animation: link
The link to the animation to be started! ("path"|"object_id"|"animation_name")
Flags: none
Return: visionaireObject
The visionaire object representing the active animation!