Constrained grab

Richmond richmondmathewson at gmail.com
Sat Jan 21 16:27:02 EST 2012


On 01/21/2012 10:30 PM, Bob Sneidar wrote:
> Richmond has been imbibing again...
>
>

Not so:

on mouseDown
   set the idleRate to 0
   grab me
end mouseDown

on mouseStillDown
   set the loc of me to (item 1 of the loc of me, 250)
end mouseStillDown

try it!

admittedly one's object does perform a slightly drunken wobble . . .  :)




More information about the use-livecode mailing list