# AS Trig Help

**URL:** <https://forum.kirupa.com/t/as-trig-help/231832>\
**Category:** flash\
**Created:** [July 8, 2007, 5:36pm UTC](https://forum.kirupa.com/t/as-trig-help/231832 "2007-07-08T17:36:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SuperBokey](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@SuperBokey](https://forum.kirupa.com/u/SuperBokey)\
**Post date:** [July 8, 2007, 5:36pm UTC](https://forum.kirupa.com/t/as-trig-help/231832/1 "2007-07-08T17:36:23Z")

</div>

Hey can anyone tell me the formula for rotating an object based on 90 degrees. For example, I only want the characters rotation values to be 0, 90, 180, or 270 based on the angle between the mouse and an object. I used to know a formula that worked right into the atan2 method, however sadly I had forgotten it. Can anyone help me?
