Phaser API Documentation

  Version: 
setBounds(x, y, width, height)

Description:

Sets or modifies a rectangular boundary constraining the particles.

To remove the boundary, set Phaser.GameObjects.Particles.ParticleEmitter#bounds to null.

Parameters:

name type description
x number | Phaser.Types.GameObjects.Particles.ParticleEmitterBounds | Phaser.Types.GameObjects.Particles.ParticleEmitterBoundsAlt

The x-coordinate of the left edge of the boundary, or an object representing a rectangle.

y number

The y-coordinate of the top edge of the boundary.

width number

The width of the boundary.

height number

The height of the boundary.

Returns:
Description:

This Particle Emitter.