Animation#stop()

stop(resetFrame, dispatchComplete) Stops playback of this animation and set it to a finished state. If a resetFrame is provided it will stop playback and set frame to the first in the animation.If dispatchComplete is true it will dispatch the complete events, otherwise they'll be ignored. Parameters Name Type Argument Default Description resetFrame boolean <optional> false If true after the animation stops the currentFrame value will be set to the first frame in this animation. di

BitmapData#setPixel()

setPixel(x, y, red, green, blue, immediate) → {Phaser.BitmapData} Sets the color of the given pixel to the specified red, green and blue values. Parameters Name Type Argument Default Description x number The x coordinate of the pixel to be set. Must lay within the dimensions of this BitmapData. y number The y coordinate of the pixel to be set. Must lay within the dimensions of this BitmapData. red number The red color value, between 0 and 0xFF (255). green number The

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

Particle#swapChildren()

swapChildren(child, child2) Swaps the position of 2 Display Objects within this container. Parameters Name Type Description child DisplayObject - child2 DisplayObject - Inherited From PIXI.DisplayObjectContainer#swapChildren Source code: pixi/display/DisplayObjectContainer.js (Line 85)

Bullet#moveDown()

moveDown() → {PIXI.DisplayObject} Moves this Game Object down one place in its parents display list.This call has no effect if the Game Object is already at the bottom of the display list. If this Game Object hasn't been added to a custom Group then this method will move it one object down within the Game World,because the World is the root Group from which all Game Objects descend. Returns PIXI.DisplayObject - This instance. Inherited From Phaser.Component.BringToTop#moveDown Source

Line#random()

random(out) → {Phaser.Point} Picks a random point from anywhere on the Line segment and returns it. Parameters Name Type Argument Description out Phaser.Point | object <optional> A Phaser.Point, or any object with public x/y properties, that the values will be set in. If no object is provided a new Phaser.Point object will be created. In high performance areas avoid this by re-using an object. Returns Phaser.Point - An object containing the random point in its x and y properti

RequestAnimationFrame#RequestAnimationFrame

new RequestAnimationFrame(game, forceSetTimeOut) Abstracts away the use of RAF or setTimeOut for the core game update loop. Parameters Name Type Argument Default Description game Phaser.Game A reference to the currently running game. forceSetTimeOut boolean <optional> false Tell Phaser to use setTimeOut even if raf is available. Source code: utils/RequestAnimationFrame.js (Line 15)

MSPointer#MSPointer

new MSPointer(game) The MSPointer class handles Microsoft touch interactions with the game and the resulting Pointer objects. It will work only in Internet Explorer 10+ and Windows Store or Windows Phone 8 apps using JavaScript.http://msdn.microsoft.com/en-us/library/ie/hh673557(v=vs.85).aspx You should not normally access this class directly, but instead use a Phaser.Pointer object whichnormalises all game input for you including accurate button handling. Please note that at the current time

Cache#removeImage()

removeImage(key, destroyBaseTexture) Removes an image from the cache. You can optionally elect to destroy it as well. This calls BaseTexture.destroy on it. Note that this only removes it from the Phaser Cache. If you still have references to the data elsewherethen it will persist in memory. Parameters Name Type Argument Default Description key string Key of the asset you want to remove. destroyBaseTexture boolean <optional> true Should the BaseTexture behind this image also

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