Jump to content

Reset Position of TileSprite's body


Recommended Posts



I'm using the Physics Editor to create shapes for my sprites. I reset the position for the bodies with

		sprite.body.x += sprite.width / 2;
		sprite.body.y += sprite.height / 2;


to make the body fit the sprite and it works as expected.

Unfortunately this doesn't work for TileSprites. It looks like, whenever I apply the above statements to a TileSprite, that the sprite and the body are moved, which is not what I'm going to achieve. 

How can I set the body of a TileSprite to the correct position again?

Thanks in advance.

Link to comment
Share on other sites


  • Recently Browsing   0 members

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