Text#events

events : Phaser.Events All Phaser Game Objects have an Events class which contains all of the events that are dispatched when certain things happen to thisGame Object, or any of its components. Inherited From Phaser.Component.Core#events Source code: gameobjects/components/Core.js (Line 185) See Phaser.Events

Group#getFirstExists()

getFirstExists(exists, createIfNull, x, y, key, frame) → {DisplayObject} Get the first display object that exists, or doesn't exist. You can use the optional argument createIfNull to create a new Game Object if none matching your exists argument were found in this Group. It works by calling Group.create passing it the parameters given to this method, and returning the new child. If a child was found , createIfNull is false and you provided the additional arguments then the childwill be reset

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

RenderTexture#resize()

resize(width, height, updateBase) Resizes the RenderTexture. Parameters Name Type Description width Number The width to resize to. height Number The height to resize to. updateBase Boolean Should the baseTexture.width and height values be resized as well? Inherited From PIXI.RenderTexture#resize Source code: pixi/textures/RenderTexture.js (Line 139)

Loader#audiosprite()

audiosprite(key, urls, jsonURL, jsonData, autoDecode) → {Phaser.Loader} A legacy alias for Loader.audioSprite. Please see that method for documentation. Parameters Name Type Argument Default Description key string Unique asset key of the audio file. urls Array | string An array containing the URLs of the audio files, i.e.: [ 'audiosprite.mp3', 'audiosprite.ogg', 'audiosprite.m4a' ] or a single string containing just one URL. jsonURL string <optional> null The URL of th

Graphics#getChildAt()

getChildAt(index) → {DisplayObject} Returns the child at the specified index Parameters Name Type Description index Number The index to get the child from Returns DisplayObject - The child at the given index, if any. Inherited From PIXI.DisplayObjectContainer#getChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 153)

Physics.P2.BodyDebug#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:

GameObjectFactory#existing()

existing(object) → {any} Adds an existing display object to the game world. Parameters Name Type Description object any An instance of Phaser.Sprite, Phaser.Button or any other display object. Returns any - The child that was added to the World. Source code: gameobjects/GameObjectFactory.js (Line 35)

Physics.P2#P2

new P2(game, config) This is your main access to the P2 Physics World.From here you can create materials, listen for events and add bodies into the physics simulation. Parameters Name Type Argument Description game Phaser.Game Reference to the current game instance. config object <optional> Physics configuration object passed in from the game constructor. Source code: physics/p2/World.js (Line 20)

Particles.Arcade.Emitter#getRandom()

getRandom(startIndex, length) → {any} Returns a random child from the group. Parameters Name Type Argument Default Description startIndex integer <optional> 0 Offset from the front of the group (lowest child). length integer <optional> (to top) Restriction on the number of values you want to randomly select from. Returns any - A random child of this Group. Inherited From Phaser.Group#getRandom Source code: core/Group.js (Line 2350)