makeSprite
makeSprite(
pAsset
,pSheet
?):Sprite
Creates and returns a Sprite
object.
This uses getTexture internally
Parameters
• pAsset: string
The asset of the sprite to create.
• pSheet?: string
| string
[]
(optional) The spritesheet(s) that the texture is in. You can leave this out unless you have two textures with the same name in different spritesheets
Returns
Sprite