Difference between revisions of "Spine"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| − | |||
<!-- GIDEROSOBJ:SpineSprite --> | <!-- GIDEROSOBJ:SpineSprite --> | ||
| − | ''' | + | '''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]][[File:Platform linux.png]]<br/> |
| − | ''' | + | '''Available since:''' Gideros 2018.12<br/> |
| − | ''' | + | '''Inherits from:''' [[Sprite]]<br/> |
| − | |||
| − | |||
| − | |||
| − | Spine plugin allows to load files created with Esoteric Software Spine utility. It exposes a specific Sprite type, SpineSprite. To use it, require | + | === 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: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
| − | </ | + | require("spine") |
| + | </syntaxhighlight> | ||
| + | |||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
| − | === | + | === Methods === |
| − | [[ | + | [[SpineSprite.new]] <br/><!--GIDEROSMTD:SpineSprite.new(file,atlas,speed)--> |
| − | [[ | + | |
| − | [[ | + | [[SpineSprite:addAnimation]] <br/><!--GIDEROSMTD:SpineSprite:addAnimation(track,animation,mix,loop,delay)--> |
| − | [[ | + | [[SpineSprite:getBoneLocation]] <br/><!--GIDEROSMTD:SpineSprite:getBoneLocation(bone,lx,ly,lr)--> |
| − | [[ | + | [[SpineSprite:getSpeed]] <br/><!--GIDEROSMTD:SpineSprite:getSpeed()--> |
| − | [[ | + | [[SpineSprite:setAnimation]] <br/><!--GIDEROSMTD:SpineSprite:setAnimation(track,animation,mix,loop)--> |
| − | [[ | + | [[SpineSprite:setAttachment]] <br/><!--GIDEROSMTD:SpineSprite:setAttachment(attachment)--> |
| − | [[ | + | [[SpineSprite:setMix]] <br/><!--GIDEROSMTD:SpineSprite:setMix(anim1,anim2,mix)--> |
| − | [[ | + | [[SpineSprite:setSkin]] <br/><!--GIDEROSMTD:SpineSprite:setSkin(skin)--> |
| − | [[ | + | [[SpineSprite:setSpeed]] <br/><!--GIDEROSMTD:SpineSprite:setSpeed(speed)--> |
| + | [[SpineSprite:stopAnimation]] <br/><!--GIDEROSMTD:SpineSprite:stopAnimation(track,mix)--> | ||
| + | |||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
| + | === Events === | ||
| + | [[Event.ANIMATION_START]]<br/><!--GIDEROSEVT:Event.ANIMATION_START animationStart--> | ||
| + | [[Event.ANIMATION_INTERRUPT]]<br/><!--GIDEROSEVT:Event.ANIMATION_START animationInterrupt--> | ||
| + | [[Event.ANIMATION_END]]<br/><!--GIDEROSEVT:Event.ANIMATION_START animationEnd--> | ||
| + | [[Event.ANIMATION_DISPOSE]]<br/><!--GIDEROSEVT:Event.ANIMATION_START animationDispose--> | ||
| + | [[Event.ANIMATION_COMPLETE]]<br/><!--GIDEROSEVT:Event.ANIMATION_START animationComplete--> | ||
| − | === | + | === Constants === |
| − | + | |} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | {{GIDEROS IMPORTANT LINKS}} | |
| − | |||
Latest revision as of 20:40, 24 January 2026
Supported platforms: ![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
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:
require("spine")