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

resizeFrame(parent, width, height) Resizes the Frame dimensions that the Game Object uses for rendering. You shouldn't normally

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

lifespan : number The lifespan allows you to give a Game Object a lifespan in milliseconds. Once the Game Object is 'born'

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

transformCallbackContext : Object The context under which transformCallback is called.

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

world : Phaser.Point The world coordinates of this

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