File tree Expand file tree Collapse file tree
src/gameobjects/particles Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ var ParticleEmitter = new Class({
635635 /**
636636 * Controls if the emitter is currently emitting a particle flow (when frequency >= 0).
637637 * Already alive particles will continue to update until they expire.
638- * Controlled by {@link Phaser.GameObjects.Particles.ParticleEmitter#start}.
638+ * Controlled by {@link Phaser.GameObjects.Particles.ParticleEmitter#start} and { @link Phaser.GameObjects.Particles.ParticleEmitter#stop} .
639639 *
640640 * @name Phaser.GameObjects.Particles.ParticleEmitter#on
641641 * @type {boolean }
@@ -1862,6 +1862,21 @@ var ParticleEmitter = new Class({
18621862 return this ;
18631863 } ,
18641864
1865+ /**
1866+ * Turns {@link Phaser.GameObjects.Particles.ParticleEmitter#on off} the emitter.
1867+ *
1868+ * @method Phaser.GameObjects.Particles.ParticleEmitter#stop
1869+ * @since 3.11.0
1870+ *
1871+ * @return {Phaser.GameObjects.Particles.ParticleEmitter } This Particle Emitter.
1872+ */
1873+ stop : function ( )
1874+ {
1875+ this . on = false ;
1876+
1877+ return this ;
1878+ } ,
1879+
18651880 /**
18661881 * {@link Phaser.GameObjects.Particles.ParticleEmitter#active Deactivates } the emitter.
18671882 *
You can’t perform that action at this time.
0 commit comments