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

loadTexture(key, frame, stopAnimation) Changes the base texture the Game

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

inputEnabled : boolean By default a Game Object won't process any input events. By setting inputEnabled to true a

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

key : string | Phaser.RenderTexture |

2025-01-10 15:47:30
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#y
  • References/Game Development/Phaser/Display/Sprite

y : number The position of the Game Object on the y axis relative to the local coordinates of the parent.

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

transformCallbackContext : Object The context under which transformCallback is called.

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

right : number The right coordinate of the Game Object.This is the same as x + width - offsetX.

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

destroy(destroyChildren, destroyTexture) Destroys the Game Object. This

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

alive : boolean A useful flag to control if the Game Object is alive or dead. This is set automatically by the Health components

2025-01-10 15:47:30