const Vector2f& sf::Transformable::getPosition () constno
How do I have to use it?
maybe like that?
Sprite.getPosition(sf::Vector2f(0, 0));
But this will not work because when I do this, I set the Position to 0, 0...no
So, how can I get the current x and as next the current y position?const Vector2f& sf::Transformable::getPosition () const
sf::Vector2f position = Sprite.getPosition();
// Pos X :
position.x
// Pos.Y :
position.y
// Pos X:
Sprite.getPosition().x;
// Pos Y:
Sprite.getPosition().y