Phaser API Documentation

  Version: 
CameraPanCallback(camera, progress, x, y)

Parameters:

name type description
camera Phaser.Cameras.Scene2D.Camera

The camera on which the effect is running.

progress number

The progress of the effect. A value between 0 and 1.

x number

The Camera's new scrollX coordinate.

y number

The Camera's new scrollY coordinate.

Type:
function
Since: 3.5.0