This class is taken from the sprite tutorial. You should read the corresponding paragraph to understand what it's used for
Hi,
I've wasted about 10 hours on trying to load a Sprite Image and then setting the center so that scaling and rotations will be centered.
I read the paragraph and do not understand.
Please help!
I think you're in the wrong thread. Laurent already explained in the other thread that the center point does not take into account scaling and rotation. So will need set the center point at the center of the untransformed sprite to get the effect you want.
Also, as other people have mentioned, you're probably biting off too much by trying to make an SFML-powered game without learning basic C++ first. You might figure it out eventually, but you're doing it the hard way. Either way, good luck.
Edit: I guess that's what happens when I reply to a post over the course of several hours.