The Camera Follower Update Event.
This event is dispatched by a Camera instance when it is following a Game Object and the Camera position has been updated as a result of that following.
Listen to it from a Camera instance using: camera.on('followupdate', listener)
.
name | type | description |
---|---|---|
camera | Phaser.Cameras.Scene2D.BaseCamera |
The camera that emitted the event. |
gameObject | Phaser.GameObjects.GameObject |
The Game Object the camera is following. |