Difference between revisions of "Spine"
From GiderosMobile
(Created page with "__NOTOC__ <languages /> <!-- GIDEROSOBJ:SpineSprite --> '''<translate>Supported platforms</translate>:''' File:Platform android.pngFile:Platform ios.pngFile:Platform...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(3 intermediate revisions by the same user not shown) | |||
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("spine")''<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("spine")''<br /> | ||
</translate> | </translate> | ||
− | < | + | <syntaxhighlight lang="lua"> |
− | </ | + | </syntaxhighlight> |
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Methods</translate> === | === <translate>Methods</translate> === | ||
+ | [[Special:MyLanguage/SpineSprite:addAnimation|SpineSprite:addAnimation]] <br/><!-- GIDEROSMTD:SpineSprite:addAnimation(track,animation,mix,loop,delay) --> | ||
+ | [[Special:MyLanguage/SpineSprite:getBoneLocation|SpineSprite:getBoneLocation]] <br/><!-- GIDEROSMTD:SpineSprite:getBoneLocation(bone,lx,ly,lr) --> | ||
+ | [[Special:MyLanguage/SpineSprite:getSpeed|SpineSprite:getSpeed]] <br/><!-- GIDEROSMTD:SpineSprite:getSpeed() --> | ||
+ | [[Special:MyLanguage/SpineSprite.new|SpineSprite.new]] <br/><!-- GIDEROSMTD:SpineSprite.new(file,atlas,speed) --> | ||
+ | [[Special:MyLanguage/SpineSprite:setAnimation|SpineSprite:setAnimation]] <br/><!-- GIDEROSMTD:SpineSprite:setAnimation(track,animation,mix,loop) --> | ||
+ | [[Special:MyLanguage/SpineSprite:setAttachment|SpineSprite:setAttachment]] <br/><!-- GIDEROSMTD:SpineSprite:setAttachment(attachment) --> | ||
+ | [[Special:MyLanguage/SpineSprite:setSkin|SpineSprite:setSkin]] <br/><!-- GIDEROSMTD:SpineSprite:setSkin(skin) --> | ||
+ | [[Special:MyLanguage/SpineSprite:setSpeed|SpineSprite:setSpeed]] <br/><!-- GIDEROSMTD:SpineSprite:setSpeed(speed) --> | ||
+ | [[Special:MyLanguage/SpineSprite:stopAnimation|SpineSprite:stopAnimation]] <br/><!-- GIDEROSMTD:SpineSprite:stopAnimation(track,mix) --> | ||
+ | [[Special:MyLanguage/SpineSprite:setMix|SpineSprite:setMix]] <br/><!-- GIDEROSMTD:SpineSprite:setMix(anim1,anim2,mix) --> | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
+ | |||
=== <translate>Events</translate> === | === <translate>Events</translate> === | ||
+ | [[Special:MyLanguage/Event.ANIMATION_START|Event.ANIMATION_START]]<br/><!-- GIDEROSEVT:Event.ANIMATION_START animationStart--> | ||
+ | [[Special:MyLanguage/Event.ANIMATION_INTERRUPT|Event.ANIMATION_INTERRUPT]]<br/><!-- GIDEROSEVT:Event.ANIMATION_START animationInterrupt--> | ||
+ | [[Special:MyLanguage/Event.ANIMATION_END|Event.ANIMATION_END]]<br/><!-- GIDEROSEVT:Event.ANIMATION_START animationEnd--> | ||
+ | [[Special:MyLanguage/Event.ANIMATION_DISPOSE|Event.ANIMATION_DISPOSE]]<br/><!-- GIDEROSEVT:Event.ANIMATION_START animationDispose--> | ||
+ | [[Special:MyLanguage/Event.ANIMATION_COMPLETE|Event.ANIMATION_COMPLETE]]<br/><!-- GIDEROSEVT:Event.ANIMATION_START animationComplete--> | ||
+ | |||
=== <translate>Constants</translate> === | === <translate>Constants</translate> === | ||
|} | |} |
Latest revision as of 14:33, 13 July 2023
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 as usual:require("spine")