I am creating a jsfiddle example to illustrate this with appropriate resources.
When your character moves and the camera starts panning , you will notice that the background has a little "jitterness". This can be disabled by setting game.camera.roundPx to true.
However, if it is disabled and you move the character. Your character begins to tremble. Some things I found in this adventure:
This only happens when moving from body.velocity.x , both in P2 physics and in Arcade .
If you move the character with body.x or just x , this is absolutely normal.
If you remove the tilemap texture, you can literally see how jitterness contemplates your eyes when moving. An example here - Make sure you move far enough to pan the camera.
I also tried game.renderer.renderSession.roundPixels = false; without prevailing.
This happens in the CANVAS and WEBGL rendering modes.
javascript phaser-framework
Nick newman
source share