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

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

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

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

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

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

FlexGrid#setSize()

setSize(width, height) Sets the core game size. This resets the w/h parameters and bounds. Parameters Name Type Description width number The new dimensions. height number The new dimensions. Source code: core/FlexGrid.js (Line 77)

FlexGrid#scaleCustom

[readonly] scaleCustom Properties: Name Type Description scaleFactor Phaser.Point The scale factor based on the game dimensions vs. the scaled dimensions. Source code: core/FlexGrid.js (Line 55)

FlexGrid#reset()

reset() Resets the layer children references Source code: core/FlexGrid.js (Line 218)

FlexGrid#refresh()

refresh() Updates all internal vars such as the bounds and scale values. Source code: core/FlexGrid.js (Line 256)