Difference between revisions of "SpineSprite.new"
From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2018.12<br/> '''<translate>Class</translate>:''' SpineSprite<br/> ==...") |
|||
Line 9: | Line 9: | ||
</source> | </source> | ||
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
− | '''file''': (string) <translate>Spine json | + | '''file''': (string) <translate>Spine skeleton file, in json or binary format</translate> <br/> |
'''atlas''': (string) <translate>Spine atlas file</translate> <br/> | '''atlas''': (string) <translate>Spine atlas file</translate> <br/> | ||
'''speed''': (number) <translate>Animation speed scale. Defaults to 1.</translate> <translate>'''optional'''</translate> <br/> | '''speed''': (number) <translate>Animation speed scale. Defaults to 1.</translate> <translate>'''optional'''</translate> <br/> |
Revision as of 07:58, 5 December 2018
Available since: Gideros 2018.12
Class: SpineSprite
Description
Create SpineSprite
(sprite) = SpineSprite.new(file,atlas,speed)
Parameters
file: (string) Spine skeleton file, in json or binary format
atlas: (string) Spine atlas file
speed: (number) Animation speed scale. Defaults to 1. optional
Return values
Returns (sprite) The SpineSprite Sprite