przemoo83 Posted May 29, 2015 Share Posted May 29, 2015 HiI'm using this simple functiongame.physics.arcade.moveToPointer(object, 100);to move an object around the screen. The issue is that the object is a long rectangle (800px width 20px height). When it moves to the pointer it always centers at the position x:0, y:0, however I want to center the ponter in the middle of my object which is x: object.width/2 and y: object.height/2. How can I achieve this? Link to comment Share on other sites More sharing options...
Nikow Posted May 29, 2015 Share Posted May 29, 2015 Have you changed the anchor point of your object ? przemoo83 1 Link to comment Share on other sites More sharing options...
przemoo83 Posted May 29, 2015 Author Share Posted May 29, 2015 I forgot about the anchors. It helped. Thanks a lot Link to comment Share on other sites More sharing options...
Recommended Posts