title: c++ Sfml trying to move an object to the Mouse Location by a particular amount every frame
body: <p>Im kind of stuck with this problem</p>
  
  <p>i created this function but for some reason i can only move the object to the right of the Player.</p>
  
  <p>If i try to move the object to the Left of the Player is goes right. </p>
  
  <p>here is my approach:</p>
  
  <pre><code>int Speed = 8;
  int x = Player_x - Mouse_x;
  int y = Player_y - MOuse_y; 
  
  float deg = atan(y / x);
  
  float erg_x = Speed * cos(deg);
  float erg_y = Speed * sin(deg);
  </code></pre>
  
  <p>erg_x/y are the numbers i use at the end to move the Object.</p>
  
  <p>Please help me :)</p>