Hi Rachid,

Member 11 is a cast member and therefore has no location on screen,
refer to sprite 11 etc.

also note I changed the second line to 'locV' of sprite 11 to get the
vertical component.

(untested)

on startMovie
   global gy,gx,gDegrees,gRadius
   set gx = the locH of sprite 11
   set gy = the locV of sprite 11
   put gx,gy
   set gDegrees = 0
   set gRadius = 50
 end

HTH

Dave

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 8: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!



________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
[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