At 11:44 PM +0200 4/3/03, you wrote:
on mousedown
  sprite(me.spriteNum).locH = the mouseH
end

note:the above code doesn't track dragging - it just moves the sprite once.


To track your mouse dragging, you might try this instead

on mouseDown me
  spr = sprite(me.spriteNum)
  initOffsetH = the mouseH - spr.locH
  repeat while the stillDown
    newOffset = (the mouseH - spr.locH)
    if newOffset <> initOffsetH then
      spr.locH = the mouseH - initOffsetH
      updateStage
    end if
  end repeat
end

& be sure to turn off 'the moveable of sprite' using the PI (property inspector), or the sprite will jump when you mouseUp

hth
-Buzz
[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