I have a phaserJS static body; for some reason, the texture shifts over by a few pixels when I run into it. I have to run for a bit before hitting it or it won't do it but it isn't enjoyable and I don't know how to fix it.
1 Answer
Hey so basically that's probably an issue with your camera dead zone. Make sure your camera's dead zone isn't set to 0. If it is, setting it to 1 should fix the issue but ensure that the player is always in the middle of the screen. :)
Note: I'm answering my question because I just had this issue and wanted to make sure anyone else making a phaserJS game could find a possible answer if they have a similar situation