You are trying to get the loc of a member. Since a member can't have a loc,
you can keep on trying 'til the cows come home...

try this: (put it in a behavior and drop it on a sprite, hit play and click
the sprite)
--------
property mySprite

on beginSprite me
    mySprite = sprite(me.spriteNum) --- get the current sprite's number, and
access the sprite
end

on mouseUp me
    put mySprite.loc
    put mySprite.locH
    put mySprite.locV
end
---------

you can set the loc of sprite a to the loc of sprite b by simply doing:

sprite(a).loc = sprite(b).loc

HTH,

Chris.



----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 9:40 AM
Subject: <lingo-l> re: sprite loc


> Hi list
>
> How can one set the loc of a sprite to the loc of another sprite. I've
been trying this
>
> on startMovie
>   global gy,gx,gDegrees,gRadius
>   set gx = the loch of member 11
>   set gy = the loch of member 11
>   put gx,gy
>   set gDegrees = 0
>   set gRadius = 50
> end
>
> the last script always returns values 0,0
>
> Many thanks!


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]

Reply via email to