hi ,
attach the following script [behavior] to the sprites, those u want to
follow the mouse.
<code>
property pnMyLoc
property pnOffset
property pnSpriteNum
on beginSprite me
pnSpriteNum = sprite(me.spriteNum)
pnOffset = the mouseLoc - pnSpriteNum.loc
end
on exitFrame me
pnSpriteNum.loc = the mouseLoc + pnOffset
end
</code ends>
sandy.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of David Turk
Sent: Friday, November 09, 2001 10:21 AM
To: lingo-L
Subject: <lingo-l> Group sprite move?
I am having an issue with moving a group of sprites (3+) so that they
stay the same distance relative to each other, but follow the mouse
around.
The solution on DOUG does not fit my needs, as I need the code to be
a all in ONE self contained single handler.
I have tried many lingo tricks up my sleeve, including use of the
offset function, but all I end up doing is creating stuff that is
only useful for putting into a multimedia serendipity gallery of
amusing to look at examples.
Anyone?
--
Thanks kindly.
David Turk
Director Programmer
Show-Ads Interactive
E: Dave Turk <[EMAIL PROTECTED]>
A: 359 Plummer St., Port Melbourne 3207
P: +61 3 9245 1400
M: 0417 845 204
F: +61 3 9646 9814
W: http://www.sai.com.au/
[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!]