title: Move an object with a given speed
body: <p>Here's an example of an if-statement where depending on what keystroke is pressed it will move to a certain position. I have also googled the &quot;move&quot; command in SFML and it takes two arguments.</p>
  <pre><code>Move the object by a given offset.
  
  This function adds to the current position of the object, unlike setPosition which overwrites it. Thus, it is equivalent to the following code:
  
  object.setPosition(object.getPosition() + offset);
  </code></pre>
  <p>Here is the code:</p>
  <pre><code>if ( key.code == Keyboard::Key::W )
  {
      sprite.move (0, -speed);
  }
  else if ( key.code == Keyboard::Key::S )
  {
      sprite.move (0, speed);
  }
  else if ( key.code == Keyboard::Key::A )
  {
      sprite.move (-speed, 0);
  }
  else if ( key.code == Keyboard::Key::D )
  {
      sprite.move (speed, 0);
  }
  </code></pre>
  <hr />
  <p>However I dont understand the arguments. <code>speed is defined as a float with the value 4.0</code>.What does sprite.move(0,-speed) mean. I understand we start at 0 but how do we move up if speed is negative? Shoudn't be move down if its negative and up if its positive? Same goes for A and D. I cant draw a picture in my brain where these arguments make sense. Can someone please througly explain?</p>