Re: animation

Scott Raney (raney@metacard.com)
Thu, 17 Aug 1995 11:58:27 -0600 (MDT)

>
> does anyone know of any ingenious ways of getting an object to follow
> the cursor *smoothly* ? Getting a mousedown handler in the object to
> follow the mouseLoc doesnt give satisfactory results :(

The only practical way to do this is:
on mouseDown
repeat while the mouse is down
set the loc of me to the mouseLoc
end repeat
end mouseDown

This should be plenty fast enough on any hardware made in the last 5
years ;-)

If you've got something older (or slower) than that, your only other
option is to make an image that looks like the object, and then set
the "cursor" property to the id of that image and the "lockCursor"
property to true.
Scott

> cheers in advance :)
>
> r.

-- 
***********************************************************************
* Scott Raney  303-447-3936            Remember: the better you look, *
* raney@metacard.com                   the more you'll see -- Lidia   *
***********************************************************************