phaserjs / phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
https://phaser.io
MIT License
36.94k stars 7.08k forks source link

sprite.x cannot be set once sprite.body is enabled #606

Closed aunz closed 10 years ago

aunz commented 10 years ago

In Phaser 2.0, once a Physics.ARCADE system is enabled for a given sprite, then setting sprite.x = n or sprite.y = n won't have any effect, but still works using sprite.body.x = n. It would be nice to be able to set sprite.x or sprite.y as previous versions.

photonstorm commented 10 years ago

Yes I've reverted quite a few ArcadePhysics things back to 1.1.3 level, so please give the dev branch version a go (you'll need to compile from grunt until I push a new package).