Hello. Sorry for asking such a rudimentary question, but I've read the appropriate tutorials and documentation, as well as played around with it some, and I haven't been able to figure it out so far. Could somebody please elaborate on Sprite.SetCenter()?
The reason I'm asking this is that it seems to be doing a lot more than I'm able to figure out. It looks like it's basically supposed to set the center of rotation (the tutorial also says translation and scaling), but it's doing a lot more than just telling Sprite.Rotate() what point to rotate the image around. If I set it to the center of the sprite, for instance, and then try to rotate it, the sprite does NOT necessarily rotate around its center. Furthermore if I set it to the center of the sprite and don't try to rotate it or anything, the sprite's position automatically translates about half the sprite's width and height?
? This has confused me severely. I have worked with graphics before, and I am certainly familiar with rotation, translation, and scaling, but I'm having a lot of trouble seeing what Sprite.SetCenter() is really doing. The only stuff I've been able to find basically just says that it sets the center for translation, rotation, and scaling, but as it's doing what seems (on the surface, in the eyes of an SFML nubie) a bunch of different, random things, I really need a more thorough description of what this function is. Any help would be appreciated. Thanks!