Featured FLA
» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden
Featured Site
» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.
There are many ways to determine the mouse angle, the main method currently in use involves the use of sine lookup tables and lots of fairly complicated looking loops. What we all want is a fast easy way to determine the mouse angle. This method approximates the angle. The movement of a bullet from the origin to the mouse is also calculated, however this is exact.
Glossary of Terms
Origin - the spot where the mouse angle is relative to. Normalisation - making two values sum to 1, whilst maintaining their relative proportions. Quadrant - the direction of the mouse angle, for this tutorial they are:
up and left
up and right
down and left
down and right