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

setFrame(frame) Sets the texture frame the Game Object uses for rendering. This is primarily an internal method used by

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

game : Phaser.Game A reference to the currently running Game

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

name : string A user defined name given to this Game Object.This value isn't ever used internally by Phaser, it is meant

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

removeChildren(beginIndex, endIndex) Removes all children from this container that are within the begin and end indexes.

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

contains(child) → {Boolean} Determines whether the specified display object is a child of the D

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

[readonly] offsetX : number The amount the Game Object is visually offset from its x coordinate

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

damage Damages the Game Object. This removes the given amount of health from the health property. If health is taken below or is equal to zero

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

centerY : number The center y coordinate of the Game Object.This is the same as (y - offsetY) + (height / 2)

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

[readonly] type : number The const type of this object.

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

cameraOffset : Phaser.Point The x/y coordinate offset

2025-01-10 15:47:30