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

sprite is not lined up correctly to body

Topics: User Forum
Jun 24, 2011 at 5:07 AM

I don't understand what is going wrong. 

I created a simple example where a sprite of a square falls down onto a ground.

I first created the example all in the Game1 class and it worked no problem. The falling sprite was lined up with the body. I recreated the same test example, but this time I used a sprite class that would draw the sprite and a box class for the box itself. So in the code the body.Position gets passed to the box class and then the box class passes the position to the sprite class which draws the box. Problem is that the box isn't lined up with the body when I do this.

Anyone understand why?

Jun 24, 2011 at 10:46 PM

Not without code and screenshots.