Class: Sprite
Extends
Implements
Constructors
new Sprite()
new Sprite(
options
):Sprite
Visual image displayed on the screen.
Parameters
• options: SpriteOptions
= {}
Returns
Overrides
Remarks
Images that will be used to create the sprite must be loaded during the Game.initialize() method prior to their use.
Source
Properties
_alpha
_alpha:
number
=1.0
Inherited from
Source
_anchorPoint
private
_anchorPoint:Point
Source
_draggable
protected
_draggable:boolean
=false
Inherited from
Source
_game?
optional
_game:Game
Inherited from
Source
_hidden
protected
_hidden:boolean
=false
Inherited from
Source
_imageName
private
_imageName:string
=""
Source
_isUserInteractionEnabled
protected
_isUserInteractionEnabled:boolean
=false
Inherited from
M2Node
._isUserInteractionEnabled
Source
_paint?
private
optional
_paint:Paint
Source
_position
_position:
Point
Inherited from
Source
_scale
_scale:
number
=1.0
Inherited from
Source
_size
protected
_size:Size
Inherited from
Source
_zPosition
private
_zPosition:number
=0
Source
_zRotation
_zRotation:
number
=0
Inherited from
Source
absoluteAlpha
absoluteAlpha:
number
=1.0
Inherited from
Source
absoluteAlphaChange
absoluteAlphaChange:
number
=0
Inherited from
Source
absolutePosition
absolutePosition:
Point
Inherited from
Source
absoluteScale
absoluteScale:
number
=1.0
Inherited from
Source
actions
actions:
Action
[]
Inherited from
Source
children
children:
M2Node
[]
Inherited from
Source
constructionIso8601TimeStamp
constructionIso8601TimeStamp:
string
Inherited from
M2Node
.constructionIso8601TimeStamp
Source
constructionSequence
constructionSequence:
number
Inherited from
Source
constructionTimeStamp
constructionTimeStamp:
number