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

Sprite shifts when game scale is not 1 #26

Closed microspace closed 5 years ago

microspace commented 5 years ago

When I set scalefactor to number other than 1, sprite starts to shift when I drag map around.

this.game.world.scale.setTo(scalefactor, scalefactor);

25

jdnichollsc commented 5 years ago

@microspace this looks an issue with the camera object of Phaser, this plugin only add a little mathematics to move that object