Camera#lerp

lerp : Phaser.Point

The linear interpolation value to use when following a target.
The default values of 1 means the camera will instantly snap to the target coordinates.
A lower value, such as 0.1 means the camera will more slowly track the target, giving
a smooth transition. You can set the horizontal and vertical values independently, and also
adjust this value in real-time during your game.

Source code: core/Camera.js (Line 109)
doc_phaser
2017-02-14 10:40:49
Comments
Leave a Comment

Please login to continue.