>on mouseDown
>
>--You must subtract the offset of the sprite's left and top...
>tClickedModel = sprite(x).modelUnderLoc(the clickLoc - 
>point(sprite(x).left, sprite(x).top))
>
>if tClickedModel.name = "maggie" then
>  --do yer stuff here...
>end if
>
>end mouseDown
>
>
>Regards,
>Kraig



Good of you to drop in Kraig, and your handler is more condensed than 
mine. One thing to point out is that yours will error if the user 
clicks in blank space. That's what the voidp() check was about.

Is it true, by the way, that the camera() part is assumed if you leave it out?

-- 

[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