Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable body while dragging map around #27

Closed
microspace opened this issue Feb 15, 2019 · 1 comment
Closed

Disable body while dragging map around #27

microspace opened this issue Feb 15, 2019 · 1 comment

Comments

@microspace
Copy link

microspace commented Feb 15, 2019

Body is always following sprite in phaser. At low speed of map dragging it is not visible, but at higher speed body get compertely seperate from sprite. Sometimes body collided with game objects and false collision occures. So is it possible to disable body when I drag map?
(I can record video if issue is not clear from my description)

@jdnichollsc
Copy link
Member

You can do that detecting if the camera is scrolling with this.game.kineticScrolling.dragging from the update method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants