You could just normalize the 2d movement vector then rotate the object accordingly. I believe you can use sin and cosine on the normalized component to find the angle.
Atan2 problem
BlitzMax Forums/BlitzMax Programming/Atan2 problemThe Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.