Difference between revisions of "Spine"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 11: Line 11:
 
Spine plugin allows to load files created with Esoteric Software Spine utility. It exposes a specific Sprite type, SpineSprite. To use it, require spine plugin for lua as usual:''require(&quot;spine&quot;)''<br />  
 
Spine plugin allows to load files created with Esoteric Software Spine utility. It exposes a specific Sprite type, SpineSprite. To use it, require spine plugin for lua as usual:''require(&quot;spine&quot;)''<br />  
 
</translate>
 
</translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
</source>
 
</source>
 
{|-
 
{|-

Revision as of 14:31, 13 July 2023


Supported platforms: Platform android.pngPlatform ios.pngPlatform html5.png
Available since: Gideros 2018.12
Inherits from: Sprite

Description


The Spine plugin is kind of 'preview' at the moment, current API is limited and could be improved over time

Spine plugin allows to load files created with Esoteric Software Spine utility. It exposes a specific Sprite type, SpineSprite. To use it, require spine plugin for lua as usual:require("spine")
<syntaxhighlight lang="lua"> </source>

Methods

SpineSprite:addAnimation
SpineSprite:getBoneLocation
SpineSprite:getSpeed
SpineSprite.new
SpineSprite:setAnimation
SpineSprite:setAttachment
SpineSprite:setSkin
SpineSprite:setSpeed
SpineSprite:stopAnimation
SpineSprite:setMix

Events

Event.ANIMATION_START
Event.ANIMATION_INTERRUPT
Event.ANIMATION_END
Event.ANIMATION_DISPOSE
Event.ANIMATION_COMPLETE

Constants