Nop. Note that there's a better solution: using a textureRect with negative width/height (this solution maps exactly to what the Flip functions did).
// flip X
sprite.setTextureRect(sf::IntRect(width, 0, -width, height));
If you really miss the Flip functions, you can write yours as free functions, using the implementation above.
Nop. Note that there's a better solution: using a textureRect with negative width/height (this solution maps exactly to what the Flip functions did).
// flip X
sprite.setTextureRect(sf::IntRect(width, 0, -width, height));
If you really miss the Flip functions, you can write yours as free functions, using the implementation above.
When I use this I can only flip it once?
What do you mean once?
// flip X
sprite.setTextureRect(sf::IntRect(width, 0, -width, height));
// unflip X
sprite.setTextureRect(sf::IntRect(0, 0, width, height));
What do you mean once?
// flip X
sprite.setTextureRect(sf::IntRect(width, 0, -width, height));
// unflip X
sprite.setTextureRect(sf::IntRect(0, 0, width, height));
I did not find the correct values for unflipping it.So thank you for helping me :)