Phaser API Documentation

  Version: 
setPosition(x, y)

Description:

Sets the position of the emitter's particle origin. New particles will be emitted here.

Parameters:

name type description
x Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType

The x-coordinate of the particle origin.

y Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType

The y-coordinate of the particle origin.

Returns:
Description:

This Particle Emitter.