Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Is sprite.FlipX() set to false on sprite.SetImage();  (Read 2052 times)

0 Members and 1 Guest are viewing this topic.

Sirt

  • Newbie
  • *
  • Posts: 27
    • View Profile
Is sprite.FlipX() set to false on sprite.SetImage();
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Is sprite.FlipX() set to false on sprite.SetImage();
« Reply #1 on: August 16, 2009, 07:30:36 pm »
Quote
Is sprite.FlipX( bool ) set to false whenever sprite.SetImage( image )
is called?

No :)
Laurent Gomila - SFML developer