Difference between revisions of "SpineSprite:addAnimation"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
SpineSprite:addAnimation(track,animation,mix,loop,delay)
 
SpineSprite:addAnimation(track,animation,mix,loop,delay)
</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 14:33, 13 July 2023


Available since: Gideros 2018.12
Class: SpineSprite

Description

Add or chain another animation

SpineSprite:addAnimation(track,animation,mix,loop,delay)

Parameters

track: (integer) Track to use
animation: (string) Animation name
mix: (number) Mix duration
loop: (boolean) Wether the animation should loop
delay: (number) Delay before starting this new animation