Hello everyone,
Fristly sorry for my english (I'm from germany).
I have big problems with the Vector2 class in sfml 2.0. I don't know how to use it and I can't find any tutorial about this topic. For example:
I got a simple sprite and I want to make this sprite moving around (with my arrow keys). So I need the current x and y position + a value (e.g. 10), when I hit one of the arrow keys.
I found this in the documentation:
const Vector2f& sf::Transformable::getPosition () const
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...
So, how can I get the current x and as next the current y position?
Many greetings from germany,
Lardos