World#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

World#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

World#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)

World#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)

World#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)

World#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)

World#resize()

resize(width, height) Updates the size of this world. Note that this doesn't modify the world x/y coordinates, just the width and height. Parameters Name Type Description width number New width of the game world in pixels. height number New height of the game world in pixels. Source code: core/World.js (Line 125)

World#resetCursor()

resetCursor(index) → {any} Sets the group cursor to the first child in the group. If the optional index parameter is given it sets the cursor to the object at that index instead. Parameters Name Type Argument Default Description index integer <optional> 0 Set the cursor to point to a specific index. Returns any - The child the cursor now points to. Inherited From Phaser.Group#resetCursor Source code: core/Group.js (Line 806)

World#resetChild()

resetChild(child, x, y, key, frame) → {DisplayObject} Takes a child and if the x and y arguments are given it calls child.reset(x, y) on it. If the key and optionally the frame arguments are given, it calls child.loadTexture(key, frame) on it. The two operations are separate. For example if you just wish to load a new texture then pass null as the x and y values. Parameters Name Type Argument Description child DisplayObject The child to reset and/or load the texture on. x number <o

World#replace()

replace(oldChild, newChild) → {any} Replaces a child of this Group with the given newChild. The newChild cannot be a member of this Group. 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 Description oldChild any The child in this group that will be replaced. newChild any