1
Graphics / Re: Applying a sf::Transfrom to a sf::Sprite
« on: June 24, 2014, 08:14:39 pm »
Guys my problem has been solved. I modified the AnimatedSprite to work with a sprite instead of vertices. I canceled the inheritance and made a sf::Sprite as a private member. This latter sprite represents the currentSprite, its texture gets set in the setAnimation() ( see the code in the wiki), and its frame rectangle ( sf::FloatRect) gets updated by each update().
To be honest you can't do much with the sf::Vertex method in the wiki, it's better to use sprites to actually use all sf::Sprite's methods.
To be honest you can't do much with the sf::Vertex method in the wiki, it's better to use sprites to actually use all sf::Sprite's methods.