SpriteBatch#sort()

sort(key, order) Sort the children in the group according to a particular key and ordering. Call this function to sort the group according to a particular key value and order. For example to depth sort Sprites for Zelda-style game you might call group.sort('y', Phaser.Group.SORT_ASCENDING) at the bottom of your State.update(). Internally this uses a standard JavaScript Array sort, so everything that applies there also applies here, includingalphabetical sorting, mixing strings and numbers, an

SpriteBatch#setProperty()

setProperty(child, key, value, operation, force) → {boolean} Sets a property to the given value on the child. The operation parameter controls how the value is set. The operations are: 0: set the existing value to the given value; if force is true a new property will be created if needed 1: will add the given value to the value already present. 2: will subtract the given value from the value already present. 3: will multiply the value already present by the given value. 4: will divide the val

SpriteBatch#setChildIndex()

setChildIndex(child, index) Changes the position of an existing child in the display object container Parameters Name Type Description child DisplayObject The child DisplayObject instance for which you want to change the index number index Number The resulting index number for the child display object Inherited From PIXI.DisplayObjectContainer#setChildIndex Source code: pixi/display/DisplayObjectContainer.js (Line 132)

SpriteBatch#setAllChildren()

setAllChildren(key, value, checkAlive, checkVisible, operation, force) Quickly set the same property across all children of this group, and any child Groups, to a new value. If this group contains other Groups then the same property is set across their children as well, iterating down until it reaches the bottom.Unlike with setAll the property is NOT set on child Groups itself. The operation parameter controls how the new value is assigned to the property, from simple replacement to addition

SpriteBatch#setAll()

setAll(key, value, checkAlive, checkVisible, operation, force) Quickly set the same property across all children of this group to a new value. This call doesn't descend down children, so if you have a Group inside of this group, the property will be set on the group but not its children.If you need that ability please see Group.setAllChildren. The operation parameter controls how the new value is assigned to the property, from simple replacement to addition and multiplication. Parameters Nam

SpriteBatch#set()

set(child, key, value, checkAlive, checkVisible, operation, force) → {boolean} Quickly set a property on a single child of this group to a new value. The operation parameter controls how the new value is assigned to the property, from simple replacement to addition and multiplication. Parameters Name Type Argument Default Description child Phaser.Sprite The child to set the property on. key string The property, as a string, to be set. For example: 'body.velocity.x' value any

SpriteBatch#sendToBack()

sendToBack(child) → {any} Sends the given child to the bottom of this group so it renders below all other children. Parameters Name Type Description child any The child to send to the bottom of this group. Returns any - The child that was moved. Inherited From Phaser.Group#sendToBack Source code: core/Group.js (Line 926)

SpriteBatch#rotation

rotation : number The angle of rotation of the group container, in radians. This will adjust the group container itself by modifying its rotation.This will have no impact on the rotation value of its children, but it will update their worldTransform and on-screen position. Inherited From Phaser.Group#rotation Source code: core/Group.js (Line 2987)

SpriteBatch#right

right : number The right coordinate of this Group. It is derived by calling getBounds, calculating the Groups dimensions based on itsvisible children. Inherited From Phaser.Group#right Source code: core/Group.js (Line 2789)

SpriteBatch#reverse()

reverse() Reverses all children in this group. This operation applies only to immediate children and does not propagate to subgroups. Inherited From Phaser.Group#reverse Source code: core/Group.js (Line 1015)