SFML forum,
SFML 1.6, Visual C++ 2010
I load an image and set it as a sprite:
MyImage.LoadFromFile("Sprite2.bmp"))
// Create a sprite called Rocket from MyImage
sf::Sprite Rocket(MyImage);
This all works and the sprite appears on the screen.
Now when I try to set the origin of the sprite:
Rocket.setOrigin(25, 25);
I get a compiler error saying:
error C2039: 'setOrigin' : is not a member of 'sf::Sprite'
What am I doing wrong here?
jerryd