Sprite#blendMode
  • References/Game Development/Phaser/Display/Sprite

blendMode : number The blend mode to be applied to the sprite. Set to PIXI.blendModes.NORMAL to remove any blend mode. Warning:

2025-01-10 15:47:30
Sprite#centerX
  • References/Game Development/Phaser/Display/Sprite

centerX : number The center x coordinate of the Game Object.This is the same as (x - offsetX) + (width / 2)

2025-01-10 15:47:30
Sprite#moveUp()
  • References/Game Development/Phaser/Display/Sprite

moveUp() → {PIXI.DisplayObject} Moves this Game Object up one place in its parents display list

2025-01-10 15:47:30
Sprite#setTexture()
  • References/Game Development/Phaser/Display/Sprite

setTexture(texture, destroy) Sets the texture of the sprite. Be warned that this doesn't remove or destroy

2025-01-10 15:47:30
Sprite#inCamera
  • References/Game Development/Phaser/Display/Sprite

[readonly] inCamera : boolean Checks if the Game Objects bounds intersect with the Game Camera

2025-01-10 15:47:30
Sprite#texture
  • References/Game Development/Phaser/Display/Sprite

texture : PIXI.Texture The texture that the

2025-01-10 15:47:30
Sprite#revive()
  • References/Game Development/Phaser/Display/Sprite

revive(health) → {PIXI.DisplayObject} Brings a 'dead' Game Object

2025-01-10 15:47:30
Sprite#setChildIndex()
  • References/Game Development/Phaser/Display/Sprite

setChildIndex(child, index) Changes the position of an existing child in the display object container Parameters

2025-01-10 15:47:30
Sprite#setHealth
  • References/Game Development/Phaser/Display/Sprite

setHealth Sets the health property of the Game Object to the given amount.Will never exceed the maxHealth value.

2025-01-10 15:47:30
Sprite#top
  • References/Game Development/Phaser/Display/Sprite

top : number The y coordinate of the Game Object.This is the same as y - offsetY.

2025-01-10 15:47:30