Reputation: 13
I just want to know if there is a solution to make my sprite change the rotation in the other sense and move away from another sprite (it position is in the center of the hud view).
Upvotes: 0
Views: 50
Reputation: 36
Since you do not provide any code or context I can't really help you but to rotate a sprite, use the rotate method of the Sprite class I guess.
sf::Sprite sprite;
sprite.rotate(45.f); //To rotate a sprite by 45°
Upvotes: 1