Sticking an image to the cursor

Klaus Major klaus at major-k.de
Sat Oct 11 12:00:01 EDT 2008


Hi Sue,

> Is is possible for an image to smoothly "stick" onto the cursor? I  
> am working on a jigsaw puzzle for children. I know that I can set  
> the image to the mouse location, but it is very choppy and and the  
> image will drop if the user accelerates mouse speed and it can't  
> leep up.
>
> Thanks in advance!

did you try the "grab" command?
That may be the solution for you.

Put this into the script of your jigsaw image(s)

on mousedown
   grab me
end mousedown

That's all to make <an image smoothly "stick" onto the cursor> :-)


Best

Klaus Major
klaus at major-k.de
http://www.major-k.de





More information about the use-livecode mailing list