Am I thinking about the layout of this the right way?
playersprite.move ( playersprite.getPosition( window ).x +=0, playersprite.getPosition( window ).y -=10 );
Trying to combine my code with what stoney153 posted, I am just messing around with it right now, codeblocks is complaining about the way I've written it.
You don't need to put: playersprite.getPosition( window ).x +=0, it's redundant. Just put 0
Anywhoo well if you want something simple just make a function for your user input, then add something like: if(sf::keyboard::iskeypressed(sf::keyboard::w)){x-=4} and when drawing your're sprite just use something like: sprite.setposition(x, y);
---modify---
P.S you're using 'getPosition' instead of 'setPositon' which would also be an issue. getPosition only finds where the x or y is. setPosition is the modifyer.