new angle prop
Klaus Major
kmajor at metascape.org
Wed Apr 24 06:21:01 EDT 2002
Hi Phil,
> Try this - it works:
> -- 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
> (I forgot to use the 'mouseMove' params - if you do, that'll make it
> yours!)
>
> My "angle" test stack is at
> http://home.attbi.com/~phildavis/mc/angle.mc .
>
> Phil
wonderful, thanks a lot, works like a charm.
Exactly what i was looking for :-D
That makes you definitively my dream-something of the day ;-)
(Hi Shari :-)
Regards
Klaus Major
kmajor at metascape.org
More information about the metacard
mailing list