title: Calculating direction angle from x and y speed
body: <p>I'm developing game in Game Maker kind of program (not actual Game Maker, though), because I've failed in coding games in real languages (can code normal apps, just not games) so many times.</p>
  
  <p>Anyway, in program that I'm using direction function was proven to be buggy at times. However x and y speed of object are always correct, so I'd like to calculate direction angle (in degrees) from those. Unfortunately I'm not math genius and I'm always failing at trigonometry ;(. Can you help me?</p>
  
  <p>My game making IDE's angle coordinate system is as follows:</p>
  
  <pre><code>         270 deg.
    180 deg.      0 deg.
           90 deg.
  </code></pre>
  
  <p>Positioning system is like in most environments (0,0 in top-left)</p>