Hey,
Currently I'm checking out the possibillities to rotate a sprite. It works very great, but I got a question. Why the degree get with every turn +/-360?
I was wondering very much when I made a debug output with GetRotation() and saw a very big or very small value instead of something like 127...
In addition to that I'd like to build something like this:
http://www.tonypa.pri.ee/tbw/tut20.htmlCould somebody provide me a code example that calculate the values I have to pass to SetLeft() and SetTop() to get the same result as on the page I posted above?
Thanks in advance
PS: If I rotate the sprite do I have to call this code again?
Sprite.SetRotationCenter(Sprite.GetHeight() / 2, Sprite.GetWidth() / 2);
Or is it done by SFML already?