Home > Mobile >  Moving the character a few tiles more seems to cause the whole scene (the physics world) to shake, w
Moving the character a few tiles more seems to cause the whole scene (the physics world) to shake, w

Time:01-03

Here is the example code from enter image description here

Keep moving the character a few tiles more toward the same direction causes the world scene to shake, why is that? How do I fix it?

enter image description here

CodePudding user response:

In line #126 you have a shake function this.cameras.main.shake(300); that makes the game window to shake with a duration of 300ms. To remove it, just comment it out or delete it.

  • Related