events : Phaser.Events All Phaser Game Objects
loadTexture(key, frame, stopAnimation) Changes the base texture the Game
key : string | Phaser.RenderTexture |
destroy(destroyChildren, destroyTexture) Destroys the Game Object. This
y : number The position of the Game Object on the y axis relative to the local coordinates of the parent.
alive : boolean A useful flag to control if the Game Object is alive or dead. This is set automatically by the Health components
crop(rect, copy) Crop allows you to crop the texture being used to display this Game Object.Setting
world : Phaser.Point The world coordinates of this
setTexture(texture, destroy) Sets the texture of the sprite. Be warned that this doesn't remove or destroy
centerX : number The center x coordinate of the Game Object.This is the same as (x - offsetX) + (width / 2)
Page 5 of 11