SpriteBatch#addChildAt()

addChildAt(child, index) → {DisplayObject} Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown Parameters Name Type Description child DisplayObject The child to add index Number The index to place the child in Returns DisplayObject - The child that was added. Inherited From PIXI.DisplayObjectContainer#addChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 55)

SpriteBatch#addChild()

addChild(child) → {DisplayObject} Adds a child to the container. Parameters Name Type Description child DisplayObject The DisplayObject to add to the container Returns DisplayObject - The child that was added. Inherited From PIXI.DisplayObjectContainer#addChild Source code: pixi/display/DisplayObjectContainer.js (Line 42)

SpriteBatch#addAt()

addAt(child, index, silent) → {DisplayObject} Adds an existing object to this group. The child is added to the group at the location specified by the index value, this allows you to control child ordering. If Group.enableBody is set, then a physics body will be created on the object, so long as one does not already exist. If Group.inputEnableChildren is set, then an Input Handler will be created on the object, so long as one does not already exist. Parameters Name Type Argument Default Descr

SpriteBatch#addAll()

addAll(property, amount, checkAlive, checkVisible) Adds the amount to the given property on all children in this group. Group.addAll('x', 10) will add 10 to the child.x value for each child. Parameters Name Type Description property string The property to increment, for example 'body.velocity.x' or 'angle'. amount number The amount to increment the property by. If child.x = 10 then addAll('x', 40) would make child.x = 50. checkAlive boolean If true the property will only be changed if

SpriteBatch#add()

add(child, silent, index) → {DisplayObject} Adds an existing object as the top child in this group. The child is automatically added to the top of the group, and is displayed above every previous child. Or if the optional index is specified, the child is added at the location specified by the index value,this allows you to control child ordering. If the child was already in this Group, it is simply returned, and nothing else happens to it. If Group.enableBody is set, then a physics body will

Sprite#z

[readonly] z : number The z depth of this Game Object within its parent Group.No two objects in a Group can have the same z value.This value is adjusted automatically whenever the Group hierarchy changes.If you wish to re-order the layering of a Game Object then see methods like Group.moveUp or Group.bringToTop. Inherited From Phaser.Component.Core#z Source code: gameobjects/components/Core.js (Line 177)

Sprite#y

y : number The position of the Game Object on the y axis relative to the local coordinates of the parent. Inherited From Phaser.Component.PhysicsBody#y Source code: gameobjects/components/PhysicsBody.js (Line 124)

Sprite#x

x : number The position of the Game Object on the x axis relative to the local coordinates of the parent. Inherited From Phaser.Component.PhysicsBody#x Source code: gameobjects/components/PhysicsBody.js (Line 98)

Sprite#world

world : Phaser.Point The world coordinates of this Game Object in pixels.Depending on where in the display list this Game Object is placed this value can differ from position,which contains the x/y coordinates relative to the Game Objects parent. Inherited From Phaser.Component.Core#world Source code: gameobjects/components/Core.js (Line 211)

Sprite#width

width : number The width of the sprite, setting this will actually modify the scale to achieve the value set Source code: pixi/display/Sprite.js (Line 125)