SFML 1.6 I guess :
pac.SetCenter(pac.GetSize().x / 2 , pac.GetSize().y / 2);
I tried that, with pac.SetCenter(0.5*BLOCKSIZE, 0.5*BLOCKSIZE);
And it actually set's the Center to 10/10, because i can see it on debug mode.
The problem is when i try to get the global position of the center on the screen with:
pac.TransformToGlobal(pac.GetCenter()).x;
pac.TransformToGlobal(pac.GetCenter()).y;
PacPosX = pac.GetCenter().x
PacPosY = pac.GetCenter().y
or
PacPosX = pac.GetPosition().x
PacPosX = pac.GetPosition().y
it still gives me the position of the upper left corner
SFML 1.6 here.
thanks