Difference between revisions of "Spine"

From GiderosMobile
Line 29: Line 29:
  
 
=== <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> ===
 
|}
 
|}

Revision as of 16:10, 3 December 2018


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")

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