Difference between revisions of "SpineSprite.new"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
Line 5: | Line 5: | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate>Create SpineSprite</translate> | <translate>Create SpineSprite</translate> | ||
− | < | + | <syntaxhighlight lang="lua"> |
(sprite) = SpineSprite.new(file,atlas,speed) | (sprite) = SpineSprite.new(file,atlas,speed) | ||
</source> | </source> |
Revision as of 14:31, 13 July 2023
Available since: Gideros 2018.12
Class: SpineSprite
Description
Create SpineSprite <syntaxhighlight lang="lua"> (sprite) = SpineSprite.new(file,atlas,speed) </source>
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