Jump to content

Why does a sprite move down once physics is enabled?


Recommended Posts



I have a sprite in a group,  before enabling arcade physics the sprite is positioned correctly, but after enabling arcade physics on the sprite, it shifts downwards and the pivot is different?



 sprite1 = game.add.sprite(0, 0, 'balls', 0, spinGroup);


sprite1 .pivot.x = -100;


to move it to around same position I had to change the code.




sprite1 = game.add.sprite(5, -115, 'balls', 0, spinGroup);


sprite1 .pivot.x = -9;


Is this a bug, or am I doing something wrong?


Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...