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

SpriteBatch#addMultiple()

addMultiple(children, silent) → {Array.<DisplayObject> | Phaser.Group} Adds an array of existing Display Objects to this Group. The Display Objects are automatically added to the top of this Group, and will render on-top of everything already in this Group. As well as an array you can also pass another Group as the first argument. In this case all of the children from thatGroup will be removed from it and added into this Group. If Group.enableBody is set, then a physics body will be cre

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

Graphics#contains()

contains(child) → {Boolean} Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself. Parameters Name Type Description child DisplayObject - Returns Boolean - Inherited From PIXI.DisplayObjectContainer#contains Source code: pixi/display/DisplayObjectContainer.js (Line 449)

DisplayObjectContainer#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. Source code: pixi/display/DisplayObjectContainer.js (Line 213)

Group#forEachDead()

forEachDead(callback, callbackContext, args) Call a function on each dead child in this group. See forEach for details. Parameters Name Type Argument Default Description callback function The function that will be called for each applicable child. The child will be passed as the first argument. callbackContext object The context in which the function should be called (usually 'this'). args any <optional> <repeatable> (none) Additional arguments to pass to the cal

Graphics#Graphics

new Graphics(game, x, y) A Graphics object is a way to draw primitives to your game. Primitives include forms of geometry, such as Rectangles,Circles and Polygons. They also include lines, arcs and curves. When you initially create a Graphics object it willbe empty. To 'draw' to it you first specify a lineStyle or fillStyle (or both), and then draw a shape. For example: graphics.beginFill(0xff0000); graphics.drawCircle(50, 50, 100); graphics.endFill(); This will draw a circle shape to the Gra

Component.Destroy#destroyPhase

[readonly] destroyPhase : boolean As a Game Object runs through its destroy method this flag is set to true,and can be checked in any sub-systems or plugins it is being destroyed from. Source code: gameobjects/components/Destroy.js (Line 22)

Line#setTo()

setTo(x1, y1, x2, y2) → {Phaser.Line} Sets the components of the Line to the specified values. Parameters Name Type Argument Default Description x1 number <optional> 0 The x coordinate of the start of the line. y1 number <optional> 0 The y coordinate of the start of the line. x2 number <optional> 0 The x coordinate of the end of the line. y2 number <optional> 0 The y coordinate of the end of the line. Returns Phaser.Line - This line object

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