Dear Stef,

Yippee! Someone else I can help! People will start to think I know what I'm
talking about...

I think what you want to do is this. You do not need any other behaviours
attached than the following, so get rid of any that may be lingering, then
attach the following behaviour. n.b. x is the number of the sprite channel
that contains the sprite you are dragging, y is the same number for the
correct sprite you are dragging to, and z similarly for the wrong sprite. If
you want to use the score in a different bit of script, it needs to be
global, hence the 'global' declaration.

On mousedown me
global score
repeat while the mousedown = true
set the loch of sprite x = the mouseh
set the locv of sprite x = the mousev
if sprite x intersects y then set score = 1
if sprite x intersects z then set score = 0
updatestage
end repeat
end


Hope this is helpful.

Richard


[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