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)
Please login to continue.