Difference between revisions of "SpineSprite.new"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
Line 7: | Line 7: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
(sprite) = SpineSprite.new(file,atlas,speed) | (sprite) = SpineSprite.new(file,atlas,speed) | ||
− | </ | + | </syntaxhighlight> |
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
'''file''': (string) <translate>Spine skeleton file, in json or binary format</translate> <br/> | '''file''': (string) <translate>Spine skeleton file, in json or binary format</translate> <br/> |
Latest revision as of 14:33, 13 July 2023
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