Sprite#crop()
  • References/Game Development/Phaser/Display/Sprite

crop(rect, copy) Crop allows you to crop the texture being used to display this Game Object.Setting

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#revive()
  • References/Game Development/Phaser/Display/Sprite

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

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#texture
  • References/Game Development/Phaser/Display/Sprite

texture : PIXI.Texture The texture that the

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

world : Phaser.Point The world coordinates of this

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#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#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
Sprite#input
  • References/Game Development/Phaser/Display/Sprite

input : Phaser.InputHandler | null The

2025-01-10 15:47:30