Thanks Ralf,
In fact both instructions sprite(3).loc = sprite(2).loc and
sprite(3).rect = sprite(2).rect work (in the sense that sprite(3) moves
to the destination sprite(2).
I even put a delay to see it cleary take that new location.
But still, it moves back to its old location. That is the problem.
Thanks for your help.
Anna.
----- Original Message -----
From: "schmidt-r" <[EMAIL PROTECTED]>
To: "Lingo-L Digest" <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 2:32 PM
Subject: Re: <lingo-l> Sprite does not keep the rect() setting
> why don�t you set the location of the sprites? Do you need to change the
> size, too?
>
> on mouseDown
> sprite(3).loc = sprite(2).loc
> end
>
> Ralf.
>
> >When I click on sprite(2) then sprite(3) moves to sprite(2) using this
> code
> > sprite(3).rect sprite(2).rect
> > That works fine, except that sprite(3) quickly moves back to its
> original
> > location.
>
>
>
> [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!]