Phaser API Documentation

  Version: 
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Event: FOLLOW_UPDATE
Phaser.Cameras.Scene2D.Events.FOLLOW_UPDATE
FOLLOW_UPDATE

Description:

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).

Parameters:

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.

Since: 3.50.0