SFML community forums

Help => Graphics => Topic started by: Sirt on August 16, 2009, 05:04:08 pm

Title: Is sprite.FlipX() set to false on sprite.SetImage();
Post by: Sirt on August 16, 2009, 05:04:08 pm
My sprite runs through a loop every few frames
that advances the frame counter and then sets the new
image for that frame to the same sprite.
Code: [Select]

// sf::Image frame[ MAX_FRAME ];
sprite.SetImage( frame[ frameCounter++ ] );


It seems to me that if I pass true to sprite.FlipX(),
once the sprite.SetImage() call comes the boolean returns to false.

Either that or I'm messing up somewhere.
Is sprite.FlipX( bool ) set to false whenever sprite.SetImage( image )
is called?

Thx.
Title: Is sprite.FlipX() set to false on sprite.SetImage();
Post by: Laurent on August 16, 2009, 07:30:36 pm
Quote
Is sprite.FlipX( bool ) set to false whenever sprite.SetImage( image )
is called?

No :)