Difference between revisions of "SpineSprite:setAnimation"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2018.12<br/> '''<translate>Class</translate>:''' SpineSprite<br/> ==...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Set animation</translate>
 
<translate>Set animation</translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
SpineSprite:setAnimation(track,animation,mix,loop)
 
SpineSprite:setAnimation(track,animation,mix,loop)
</source>
+
</syntaxhighlight>
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''track''': (integer) <translate>Track to use</translate><br/>
 
'''track''': (integer) <translate>Track to use</translate><br/>

Latest revision as of 15:33, 13 July 2023


Available since: Gideros 2018.12
Class: SpineSprite

Description

Set animation

SpineSprite:setAnimation(track,animation,mix,loop)

Parameters

track: (integer) Track to use
animation: (string) Animation name
mix: (number) Mix duration
loop: (boolean) Wether the animation should loop