1
Graphics / Could somebody please elaborate on Sprite.SetCenter()?
« on: February 20, 2012, 05:45:14 pm »
Sorry, I was taking a break from my project for a few days. I just now used some modifications with the sprites tutorial, and combining it with what you said, figured out what was going wrong in my project (in theory). Apparently the position properties interact with the center/origin of the sprite, not necessarily the upper-lefthand corner. This would be the reason you were saying it was supposed to translate like that without the position being reset; therefore it has to be immediately translated right back to where it was before the rotations occur, taking what was done previously for the 0,0 center and adapting it to whatever the center is now. (if it's supposed to just spin around in place). Thanks for the help, Laurent!