Jump to content

Alignment center of the decrease collision box size


beakartJs
 Share

Recommended Posts

I can't find the correct method, so I have one question. 
If I decrease the width of the sprite for example - from 48u to 32u then collision moves by 16u left - how could I center (align) the collision? (8u to left and 8u to right)
this.sprite.body.width = 32;

 

Link to comment
Share on other sites

  • 1 month later...
 Share

  • Recently Browsing   0 members

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