Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rotation after mouse

Status
Not open for further replies.

rukshi

Technical User
Oct 7, 2006
15
AU
Hi



I have used the "rotation after mouse" code , but I am having issues trying to work out how to have the "bullet" come from the object and follow that angle in which it is pointing.



Any hint/code example would be great.



Thanks

 
If I understood you correctly, first you need to convert the MovieClip _rotation to radian, then use Math.sin() and Math.cos() to work out the _x and _y. It's a basic trigonometry - but you need to know what trigonometry is!

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top