Difference between revisions of "SpineSprite:setMix"

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:setMix(anim1,anim2,mix)
 
SpineSprite:setMix(anim1,anim2,mix)
</source>
+
</syntaxhighlight>
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''anim1''': (string) <translate>First animation</translate><br/>
 
'''anim1''': (string) <translate>First animation</translate><br/>
 
'''anim2''': (string) <translate>Second animation</translate><br/>
 
'''anim2''': (string) <translate>Second animation</translate><br/>
 
'''mix''': (number) <translate>Mix duration</translate><br/>
 
'''mix''': (number) <translate>Mix duration</translate><br/>

Latest revision as of 14:33, 13 July 2023


Available since: Gideros 2018.12
Class: SpineSprite

Description

Define the mix durationn when transiting from animation 1 to animation 2

SpineSprite:setMix(anim1,anim2,mix)

Parameters

anim1: (string) First animation
anim2: (string) Second animation
mix: (number) Mix duration