it is upposed to.
So thanks to all of you, guys.
Anna.
- Original Message -
From: schmidt-r [EMAIL PROTECTED]
To: Lingo-L Digest [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 6:48 PM
Subject: Re: lingo-l Sprite does not keep the rect() setting
Hi Anna.
attach this behavior to sprite 3
Thanks Kerry for your reply.
I tried sprite(3).puppet = TRUE but it did not help.
Thanks.
Anna.
- Original Message -
From: Kerry Thompson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 6:01 PM
Subject: Re: lingo-l Sprite does not keep the rect() setting
Put this on your sprites 1 and 2.
on mouseUp me
newLoc = sprite(me.spriteNum).loc
sprite(3).loc = newloc
end mouseUp
Hi,
Basically I want to move an object by clicking on the objec then clicking on
the destination (no dragging).
I have 2 sprites (1 and 2) acting as placeholders for a
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
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.
I assume you mean:
sprite(3).rect = sprite(2).rect
Maybe there is some other code resetting it or
. 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
Just realized that I left out the click on sprite to be moved
Put this on sprite 3:
global gmoveSprite
on mouseUp me
gmoveSprite = sprite(me.spriteNum)
end
Put this on your sprites 1 and 2:
global gmoveSprite
on mouseUp me
if gmovesprite VOID then
newLoc = sprite(me.spriteNum).loc
Hi Anna.
attach this behavior to sprite 3:
-- mySprite means sprite(3)
property mySprite
on mouseDown me
mySprite = sprite(me.spriteNum)
mySprite.loc = sprite(2).loc
end
When you have problems like this, it is a good idea to make a new movie
and test the new script.
Then go back to your
Hi,
Basically I want to move an object by clicking on the objec then clicking on
the destination (no dragging).
I have 2 sprites (1 and 2) acting as placeholders for a 3rd sprite(3).
At start, sprite(3) is placed on sprite(1).
When I click on sprite(2) then sprite(3) moves to sprite(2) using
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.
Does it help if you puppet the sprite?
Cordially,
Kerry Thompson
[To remove yourself from this list,
10 matches
Mail list logo