Return to Snippet

Revision: 38315
at December 30, 2010 21:44 by tuffstudio


Initial Code
dx = mouseX - sprite.x;
dy = mouseY - sprite.y;
sprite.rotation = Math.atan2(dy, dx) * 180 / Math.PI;

Initial URL

                                

Initial Description

                                

Initial Title
Rotation With Mouse Formulas

Initial Tags

                                

Initial Language
ActionScript