proyecto26 / Phaser-Kinetic-Scrolling-Plugin

Kinetic Scrolling plugin for Canvas using Phaser Framework
https://proyecto26.github.io/Phaser-Kinetic-Scrolling-Plugin/
MIT License
131 stars 26 forks source link

Disable body while dragging map around #27

Closed microspace closed 5 years ago

microspace commented 5 years ago

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 commented 5 years ago

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