Difference between revisions of "SpineSprite:addAnimation"
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") |
||
Line 5: | Line 5: | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate>Add or chain another animation</translate> | <translate>Add or chain another animation</translate> | ||
− | < | + | <syntaxhighlight lang="lua"> |
SpineSprite:addAnimation(track,animation,mix,loop,delay) | SpineSprite:addAnimation(track,animation,mix,loop,delay) | ||
</source> | </source> |
Revision as of 14:31, 13 July 2023
Available since: Gideros 2018.12
Class: SpineSprite
Description
Add or chain another animation <syntaxhighlight lang="lua"> SpineSprite:addAnimation(track,animation,mix,loop,delay) </source>
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