Jump to content

Sprite jittering with camera follow


jf908
 Share

Recommended Posts

Hey, I'm pretty new to phaser and wanted to start making a platformer game.

I'm using Chrome on OS X.

 

I have set up a player sprite using arcade physics and set the camera to follow the player, however the player jitters by 1 pixel when the camera moves with the player. I'm not sure how to go around fixing this problem but I set up a demo here:

http://codepen.io/jf908/pen/ZYrLyO?editors=001

 

This doesn't happen when I set the velocity to 150 so I'm guessing it has something to do with decimals, however I would prefer to be able to adjust the velocity and have the camera stay consistent with the player.

Any help would be appreciated, thanks.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...