hi im kind of new to this...ive tried to attach this behaviour to a grpahic,
but nothing happens...but to be honest i m really not sure what it does
anyway...can someone expalin please. thanx jon
-----Original Message-----
From: Alan Andrews [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:55 PM
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> Lingo question_scrolling images with mouse
position
Hi leon..
I found this the other day... I'm afraid I can't give the author due credit
because sometimes I come across bits of code when I'm looking for other
things
and just keep them on file.. knowing that they will come in handy...
I think this may be what you are looking for...
regards
Alan
on exitFrame me
-- get the mouse location
p = the mouseLoc
x1 = p.locH
y1 = p.locV
-- get the sprite location
x2 = (sprite me.spriteNum).locH
y2 = (sprite me. spriteNum). locV
-- use atan to comput the angle
angle = atan(float(y2-y1)/float(x2-x1))
-- correct the angle
if x1 < x2 then angle = pi()+angle
-- convert the angle to degrees
angle = angle*360.0/(2.0*pi())
-- set the sprite
(sprite me.spriteNum).rotation = angle
end
----- Original Message -----
From: "Leon McComish" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 08 December 2000 11:56
Subject: RE: <lingo-l> Lingo question_scrolling images with mouse position
> good day list,
>
> anyone tell me where I can get the behaviour that has that "arrows
rotating
> to follow the mouse" effect?
>
>
>
> Leon McComish
> Web Developer
> email: [EMAIL PROTECTED]
>
> Get the best free games on the web at
>
> www.freeloader.com
>
> freeloader.com is a division of
> Pure Entertainment Games PLC
> 131-151 Great Titchfield Street
> London W1P 8AE
> tel: +44 (0)207 663 3900
> fax: +44 (0)207 663 3901
>
>
>
>
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
> email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]