Search tutorials
Applying Trig
So once you understand how to find an angle from two measurements, then look what to do--- break it down into programming components:
Comment: ----------------------------------------------
Comment: get mouse location
Comment: ----------------------------------------------
Set Variable: "mouse_x" = GetProperty("",_x) - ..:scr_ctr_x
Set Variable: "mouse_y" = GetProperty("",_y) - ..:scr_ctr_y
There is a movie clip on the main timeline in the "Controller" layer. It serves three purposes... it holds all the actionscript that makes this work, it is dragged so we can determine the mouse x,y coordinate, and it holds the objects which follow the mouse telling you useful information.
| » Level Advanced |
|
Added: 2000-12-18 Rating: 6 Votes: 92 |
| » Author |
| Flashjunkie is a self-professed obsessive addict of life. Due to the highly artistic nature required of an Art Director for an Ad agency, he took up Flash to add some math to his diet. |
| » Download |
| Download the files used in this tutorial. |
| Download (7 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!