loadTexture(key, frame, stopAnimation) Changes the base texture the Game
inputEnabled : boolean By default a Game Object won't process any input events. By setting inputEnabled to true a
key : string | Phaser.RenderTexture |
crop(rect, copy) Crop allows you to crop the texture being used to display this Game Object.Setting
y : number The position of the Game Object on the y axis relative to the local coordinates of the parent.
transformCallbackContext : Object The context under which transformCallback is called.
right : number The right coordinate of the Game Object.This is the same as x + width - offsetX.
setChildIndex(child, index) Changes the position of an existing child in the display object container Parameters
destroy(destroyChildren, destroyTexture) Destroys the Game Object. This
alive : boolean A useful flag to control if the Game Object is alive or dead. This is set automatically by the Health components
Page 5 of 11