Sprite#health

health : number The Game Objects health value. This is a handy property for setting and manipulating health on a Game Object. It can be used in combination with the damage method or modified directly. Inherited From Phaser.Component.Health#health Default Value 1 Source code: gameobjects/components/Health.js (Line 26)

Sprite#heal

heal Heal the Game Object. This adds the given amount of health to the health property. Inherited From Phaser.Component.Health#heal Source code: gameobjects/components/Health.js (Line 90)

Sprite#getLocalBounds()

getLocalBounds() → {Rectangle} Retrieves the non-global local bounds of the Sprite as a rectangle. The calculation takes all visible children into consideration. Returns Rectangle - The rectangular bounding area Source code: pixi/display/Sprite.js (Line 315)

Sprite#getLocalBounds()

getLocalBounds() → {Rectangle} Retrieves the non-global local bounds of the Sprite as a rectangle. The calculation takes all visible children into consideration. Returns Rectangle - The rectangular bounding area Inherited From PIXI.Sprite#getLocalBounds Source code: pixi/display/Sprite.js (Line 315)

Sprite#getChildIndex()

getChildIndex(child) → {Number} Returns the index position of a child DisplayObject instance Parameters Name Type Description child DisplayObject The DisplayObject instance to identify Returns Number - The index position of the child display object to identify Inherited From PIXI.DisplayObjectContainer#getChildIndex Source code: pixi/display/DisplayObjectContainer.js (Line 112)

Sprite#getChildIndex()

getChildIndex(child) → {Number} Returns the index position of a child DisplayObject instance Parameters Name Type Description child DisplayObject The DisplayObject instance to identify Returns Number - The index position of the child display object to identify Inherited From PIXI.DisplayObjectContainer#getChildIndex Source code: pixi/display/DisplayObjectContainer.js (Line 112)

Sprite#getChildAt()

getChildAt(index) → {DisplayObject} Returns the child at the specified index Parameters Name Type Description index Number The index to get the child from Returns DisplayObject - The child at the given index, if any. Inherited From PIXI.DisplayObjectContainer#getChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 153)

Sprite#getChildAt()

getChildAt(index) → {DisplayObject} Returns the child at the specified index Parameters Name Type Description index Number The index to get the child from Returns DisplayObject - The child at the given index, if any. Inherited From PIXI.DisplayObjectContainer#getChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 153)

Sprite#getBounds()

getBounds(matrix) → {Rectangle} Returns the bounds of the Sprite as a rectangle.The bounds calculation takes the worldTransform into account. It is important to note that the transform is not updated when you call this method.So if this Sprite is the child of a Display Object which has had its transformupdated since the last render pass, those changes will not yet have been appliedto this Sprites worldTransform. If you need to ensure that all parent transformsare factored into this getBounds

Sprite#getBounds()

getBounds(matrix) → {Rectangle} Returns the bounds of the Sprite as a rectangle.The bounds calculation takes the worldTransform into account. It is important to note that the transform is not updated when you call this method.So if this Sprite is the child of a Display Object which has had its transformupdated since the last render pass, those changes will not yet have been appliedto this Sprites worldTransform. If you need to ensure that all parent transformsare factored into this getBounds