This project has moved and is read-only. For the latest updates, please go here.

SOLVED: Tile Body drawn off center from Tile Geom

Oct 10, 2009 at 4:02 PM
Edited Oct 11, 2009 at 2:41 AM

My game is a tile based platformer.  I am creating a body and geom for each platform tile that the player walks on.

How do I position the Tile Geoms so that they are not offcenter from the Tile Bodies.

I know it relates to the Body origin being at center, but I can't work it out with the Tile Geoms.


Thanks alot.


UPDATE: Found the answer after some more forum searching. Fixed it in my draw() by dividing the origin width and height in half.