Const
The Camera Shake Complete Event.
This event is dispatched by a Camera instance when the Shake Effect completes.
Listen for it via either of the following:
this.cameras.main.on('camerashakecomplete', () => {}); Copy
this.cameras.main.on('camerashakecomplete', () => {});
or use the constant, to avoid having to remember the correct event string:
this.cameras.main.on(Phaser.Cameras.Scene2D.Events.SHAKE_COMPLETE, () => {}); Copy
this.cameras.main.on(Phaser.Cameras.Scene2D.Events.SHAKE_COMPLETE, () => {});
The Camera Shake Complete Event.
This event is dispatched by a Camera instance when the Shake Effect completes.
Listen for it via either of the following:
or use the constant, to avoid having to remember the correct event string: