Sound#fadeIn()

fadeIn(duration, loop, marker) Starts this sound playing (or restarts it if already doing so) and sets the volume to zero.Then increases the volume from 0 to 1 over the duration specified. At the end of the fade Sound.onFadeComplete is dispatched with this Sound object as the first parameter,and the final volume (1) as the second parameter. Parameters Name Type Argument Default Description duration number <optional> 1000 The time in milliseconds over which the Sound should fade in

FlexLayer#callAll()

callAll(method, context, args) Calls a function, specified by name, on all on children. The function is called for all children regardless if they are dead or alive (see callAllExists for different options).After the method parameter and context you can add as many extra parameters as you like, which will all be passed to the child. Parameters Name Type Argument Default Description method string Name of the function on the child to call. Deep property lookup is supported. context stri

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

Text#play()

play(name, frameRate, loop, killOnComplete) → {Phaser.Animation} Plays an Animation. The animation should have previously been created via animations.add. If the animation is already playing calling this again won't do anything.If you need to reset an already running animation do so directly on the Animation object itself or via AnimationManager.stop. Parameters Name Type Argument Default Description name string The name of the animation to be played, e.g. "fire", "walk", "jump". Must

Events#Events

new Events(sprite) The Events component is a collection of events fired by the parent Game Object. Phaser uses what are known as 'Signals' for all event handling. All of the events inthis class are signals you can subscribe to, much in the same way you'd "listen" foran event. For example to tell when a Sprite has been added to a new group, you can bind a functionto the onAddedToGroup signal: sprite.events.onAddedToGroup.add(yourFunction, this); Where yourFunction is the function you want call

Bullet#y

y : number The position of the Game Object on the y axis relative to the local coordinates of the parent. Inherited From Phaser.Component.PhysicsBody#y Source code: gameobjects/components/PhysicsBody.js (Line 124)

Video#startMediaStream()

startMediaStream(captureAudio, width, height) → {Phaser.Video} Instead of playing a video file this method allows you to stream video data from an attached webcam. As soon as this method is called the user will be prompted by their browser to "Allow" access to the webcam.If they allow it the webcam feed is directed to this Video. Call Video.play to start the stream. If they block the webcam the onError signal will be dispatched containing the NavigatorUserMediaErroror MediaStreamError event.

Physics.P2#createLockConstraint()

createLockConstraint(bodyA, bodyB, offset, angle, maxForce) → {Phaser.Physics.P2.LockConstraint} Locks the relative position between two bodies. Parameters Name Type Argument Default Description bodyA Phaser.Sprite | Phaser.Physics.P2.Body | p2.Body First connected body. bodyB Phaser.Sprite | Phaser.Physics.P2.Body | p2.Body Second connected body. offset Array <optional> The offset of bodyB in bodyA's frame. The value is an array with 2 elements matching x and y, i.e:

Video#stop()

stop() → {Phaser.Video} Stops the video playing. This removes all locally set signals. If you only wish to pause playback of the video, to resume at a later time, use Video.paused = true instead.If the video hasn't finished downloading calling Video.stop will not abort the download. To do that you need tocall Video.destroy instead. If you are using a video stream from a webcam then calling Stop will disconnect the MediaStream session and disable the webcam. Returns Phaser.Video - This Vi

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