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