>on mousedown me
>
>       if clickloc = member(2).model("maggie") then
>
>       beep
>
>end
>
>is this right not sure....
>
>-

Even closer (the (1) should have been (s), so that it's not hard 
wired to one sprite chanel):

on mousedown
   s = the currentspritenum
   where = the clickloc - point(the left of sprite s,the top of sprite s)
   whichmodel = sprite(s).camera(1).modelunderloc(where)
   if not voidp(whichmodel) then
     if whichmodel.name = "maggie" then
       beep
     end if
   end if
end


-- 

[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!]

Reply via email to