0

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 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.