Jump to content

Why does a sprite move down once physics is enabled?


temporalix
 Share

Recommended Posts

Hello

 

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?

 

before:

 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.

 

after:

 

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

 Share

  • Recently Browsing   0 members

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