Yeah, another one.
Most of my images are actually entire sprite sheets, consisting of a 2D array of smaller images.
This was done because changing the SubRect of a sprite was a very cheap and easy process, making it the most efficient means of making an animation I could think of.
think of a game like Terraria, rather than having seperately drawn images for facing left, and facing right, only one set is drawn, then the sprite is flipped to make them face the other direction, I used the same principle here.
So I looked for flipX... I can only find it in sf::Image...
Due to the fact that my Images are sprite sheets, where frame 0 is always in the top left, and flipX would move it to the top right instead, flipX on an image is definitely not an option, not even conceavable with maths. Plus an image is likely used by way more than just 1 sprite, so even if I were to flipX an Image, I'd basically need 2 images, 1 for normal, and 1 for flipped, keeping track of 2 Images, and 2 Textures per sprite.
So... this leaves me with 2 "logical" options.
1. Redraw every single sprite sheet to include a left facing and a right facing, and add lines to my config files to specify facings, doubling the size of my sprite sheets.
2. Forget SFML 2.1 and keep using SFML 1.6. Seriously, the lack of FlipX on sprite is a serious game-breaker for me.
and for the sake of it..
3. Someone show me how to add a flipX function to sf:Sprite, to make it work in SFML2.1 as it did in SFML1.6.