Sprite jittering with camera follow

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:



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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.