resizeFrame(parent, width, height) Resizes the Frame dimensions that the Game Object uses for rendering. You shouldn't normally
key : string | Phaser.RenderTexture |
lifespan : number The lifespan allows you to give a Game Object a lifespan in milliseconds. Once the Game Object is 'born'
y : number The position of the Game Object on the y axis relative to the local coordinates of the parent.
destroy(destroyChildren, destroyTexture) Destroys the Game Object. This
setChildIndex(child, index) Changes the position of an existing child in the display object container Parameters
revive(health) → {PIXI.DisplayObject} Brings a 'dead' Game Object
[readonly] inCamera : boolean Checks if the Game Objects bounds intersect with the Game Camera
alive : boolean A useful flag to control if the Game Object is alive or dead. This is set automatically by the Health components
moveUp() → {PIXI.DisplayObject} Moves this Game Object up one place in its parents display list
Page 5 of 11