World#removeFromHash()

removeFromHash(child) → {boolean} Removes a child of this Group from the hash array.This call will return false if the child is not in the hash. Parameters Name Type Description child DisplayObject The display object to remove from this Groups hash. Must be a member of this Group and in the hash. Returns boolean - True if the child was successfully removed from the hash, otherwise false. Inherited From Phaser.Group#removeFromHash Source code: core/Group.js (Line 464)

World#removeChildren()

removeChildren(beginIndex, endIndex) Removes all children from this container that are within the begin and end indexes. Parameters Name Type Description beginIndex Number The beginning position. Default value is 0. endIndex Number The ending position. Default value is size of the container. Inherited From PIXI.DisplayObjectContainer#removeChildren Source code: pixi/display/DisplayObjectContainer.js (Line 213)

World#removeChildAt()

removeChildAt(index) → {DisplayObject} Removes a child from the specified index position. Parameters Name Type Description index Number The index to get the child from Returns DisplayObject - The child that was removed. Inherited From PIXI.DisplayObjectContainer#removeChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 191)

World#removeChild()

removeChild(child) → {DisplayObject} Removes a child from the container. Parameters Name Type Description child DisplayObject The DisplayObject to remove Returns DisplayObject - The child that was removed. Inherited From PIXI.DisplayObjectContainer#removeChild Source code: pixi/display/DisplayObjectContainer.js (Line 171)

World#removeBetween()

removeBetween(startIndex, endIndex, destroy, silent) Removes all children from this group whose index falls beteen the given startIndex and endIndex values. Parameters Name Type Argument Default Description startIndex integer The index to start removing children from. endIndex integer <optional> The index to stop removing children at. Must be higher than startIndex. If undefined this method will remove all children between startIndex and the end of the group. destroy boolea

World#removeAll()

removeAll(destroy, silent, destroyTexture) Removes all children from this Group, but does not remove the group from its parent. The children can be optionally destroyed as they are removed. You can also optionally also destroy the BaseTexture the Child is using. Be careful if you'vemore than one Game Object sharing the same BaseTexture. Parameters Name Type Argument Default Description destroy boolean <optional> false If true destroy will be invoked on each removed child. silent

World#remove()

remove(child, destroy, silent) → {boolean} Removes the given child from this group. This will dispatch an onRemovedFromGroup event from the child (if it has one), and optionally destroy the child. If the group cursor was referring to the removed child it is updated to refer to the next child. Parameters Name Type Argument Default Description child any The child to remove. destroy boolean <optional> false If true destroy will be invoked on the removed child. silent boolean

World#randomY

[readonly] randomY : number Gets a random integer which is lesser than or equal to the current height of the game world. Source code: core/World.js (Line 341)

World#randomX

[readonly] randomX : number Gets a random integer which is lesser than or equal to the current width of the game world. Source code: core/World.js (Line 319)

World#previous()

previous() → {any} Moves the group cursor to the previous (lower) child in the group. If the cursor is at the start of the group (bottom child) it is moved to the end (top child). Returns any - The child the cursor now points to. Inherited From Phaser.Group#previous Source code: core/Group.js (Line 862)