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.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|