Phaser API Documentation

  Version: 
Event: PAN_COMPLETE
Phaser.Cameras.Scene2D.Events.PAN_COMPLETE
PAN_COMPLETE

Description:

The Camera Pan Complete Event.

This event is dispatched by a Camera instance when the Pan Effect completes.

Listen for it via either of the following:

this.cameras.main.on('camerapancomplete', () => {});

or use the constant, to avoid having to remember the correct event string:

this.cameras.main.on(Phaser.Cameras.Scene2D.Events.PAN_COMPLETE, () => {});

Parameters:

name type description
camera Phaser.Cameras.Scene2D.Camera

The camera that the effect began on.

effect Phaser.Cameras.Scene2D.Effects.Pan

A reference to the effect instance.

Since: 3.3.0