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.
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?
My game making IDE's angle coordinate system is as follows:
270 deg.
180 deg. 0 deg.
90 deg.
Positioning system is like in most environments (0,0 in top-left)