Disable body while dragging map around

#27 · closed · 1 comments

View on GitHub ↗

microspace

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)

Comments

jdnichollsc

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