World#exists

exists : boolean If exists is true the group is updated, otherwise it is skipped. Inherited From Phaser.Group#exists Default Value true Source code: core/Group.js (Line 100)

World#enableBody

enableBody : boolean If true all Sprites created by, or added to this group, will have a physics body enabled on them. If there are children already in the Group at the time you set this property, they are not changed. The default body type is controlled with physicsBodyType. Inherited From Phaser.Group#enableBody Source code: core/Group.js (Line 208)

World#divideAll()

divideAll(property, amount, checkAlive, checkVisible) Divides the given property by the amount on all children in this group. Group.divideAll('x', 2) will half the child.x value for each child. Parameters Name Type Description property string The property to divide, for example 'body.velocity.x' or 'angle'. amount number The amount to divide the property by. If child.x = 100 then divideAll('x', 2) would make child.x = 50. checkAlive boolean If true the property will only be changed if

World#destroy()

destroy(destroyChildren, soft) Destroys this group. Removes all children, then removes this group from its parent and nulls references. Parameters Name Type Argument Default Description destroyChildren boolean <optional> true If true destroy will be invoked on each removed child. soft boolean <optional> false A 'soft destroy' (set to true) doesn't remove this group from its parent or null the game reference. Set to false and it does. Inherited From Phaser.Group#destr

World#customSort()

customSort(sortHandler, context) Sort the children in the group according to custom sort function. The sortHandler is provided the two parameters: the two children involved in the comparison (a and b).It should return -1 if a > b, 1 if a < b or 0 if a === b. Parameters Name Type Argument Description sortHandler function The custom sort function. context object <optional> The context in which the sortHandler is called. Inherited From Phaser.Group#customSort Source code:

World#cursorIndex

[readonly] cursorIndex : integer The current index of the Group cursor. Advance it with Group.next. Inherited From Phaser.Group#cursorIndex Source code: core/Group.js (Line 255)

World#cursor

cursor : DisplayObject The current display object that the group cursor is pointing to, if any. (Can be set manually.) The cursor is a way to iterate through the children in a Group using next and previous. Inherited From Phaser.Group#cursor Source code: core/Group.js (Line 138)

World#createMultiple()

createMultiple(quantity, key, frame, exists) → {array} Creates multiple Phaser.Sprite objects and adds them to the top of this Group. This method is useful if you need to quickly generate a pool of sprites, such as bullets. Use classType to change the type of object created. You can provide an array as the key and / or frame arguments. When you do thisit will create quantity Sprites for every key (and frame) in the arrays. For example: createMultiple(25, ['ball', 'carrot']) In the above code

World#create()

create(x, y, key, frame, exists, index) → {DisplayObject} Creates a new Phaser.Sprite object and adds it to the top of this group. Use classType to change the type of object created. 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 Group.enableBody is set, then a physics body will be created o

World#countLiving()

countLiving() → {integer} Get the number of living children in this group. Returns integer - The number of children flagged as alive. Inherited From Phaser.Group#countLiving Source code: core/Group.js (Line 2326)