phaser icon indicating copy to clipboard operation
phaser copied to clipboard

Camera lerp + velocity = quick teleport (noticable in an example)

Open Kosmoon opened this issue 4 years ago • 20 comments

In this example: Phaser 3 example there is a slight quick random teleportation, the sprite stops and teleports quickly.

To reproduce it, go in one direction for a few seconds and watch the sprite closely. (it seems to happen more often if you lose the window focus and come back to it)

It occurs when the camera is set to follow a sprite and lerp is not (1,1). roundPixels true or false doesn’t fix it.

This issue wasn't present in Phaser 2.

Tested on two computers, on mobile, chrome and firefox.

Kosmoon avatar Feb 25 '20 09:02 Kosmoon