Particles.Arcade.Emitter#at()

at(object) → {Phaser.Particles.Arcade.Emitter}

Change the emitters center to match the center of any object with a center property, such as a Sprite.
If the object doesn't have a center property it will be set to object.x + object.width / 2

Parameters
Name Type Description
object object | Phaser.Sprite | Phaser.Image | Phaser.TileSprite | Phaser.Text | PIXI.DisplayObject

The object that you wish to match the center with.

Returns

This Emitter instance.

Source code: particles/arcade/Emitter.js (Line 862)
doc_phaser
2017-02-14 10:56:51
Comments
Leave a Comment

Please login to continue.