Rotating an Image To Follow the Mouse |
(I forgot to use the 'mouseMove' params - if you do, that'll make it yours!)-- card script on mouseMove -- an "aim" checkbox turns it on/off if the hilite of btn "aim" = false then exit mouseMove put (the mouseH - (item 1 of the loc of img 1)) into x put (the mouseV - (item 2 of the loc of img 1)) into y set the angle of img 1 to ((atan2(x,y) *180) / pi) - 90 end mouseMove