phaser
phaser copied to clipboard
Camera lerp + velocity = quick teleport (noticable in an example)
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.