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

Author Topic: how the hell do i flip a sprite with the new API  (Read 1563 times)

0 Members and 1 Guest are viewing this topic.

pridefight

  • Newbie
  • *
  • Posts: 10
    • View Profile
how the hell do i flip a sprite with the new API
« on: January 09, 2012, 11:08:32 am »
i've done a game, but because of the 1.6 bug of the graphics card, i upgraded my api to 2.0, than i found i cant use the FlipX() method any more due to the changes of the API,  and then i saw someone said use scale() with a negative parameter, i tried, it worked, but has a weird effect that the sprite position no longer  means the left top corner points, any body help me with the problem?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
how the hell do i flip a sprite with the new API
« Reply #1 on: January 09, 2012, 11:45:55 am »
Laurent Gomila - SFML developer

pridefight

  • Newbie
  • *
  • Posts: 10
    • View Profile
how the hell do i flip a sprite with the new API
« Reply #2 on: January 09, 2012, 12:18:58 pm »
I have, i just need a better solution

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
how the hell do i flip a sprite with the new API
« Reply #3 on: January 09, 2012, 01:12:17 pm »
Why "better"? What's bad with the provided solutions?
Laurent Gomila - SFML developer

 

anything