This content has been marked as final. Show 3 replies
The easy way is to animate each second across a frame span of 60 seconds
using a vector shape...it's a lot cleaner than a bitmap and it animates more
efficiently. This would minimize the Lingo needed although if you wanted to
do it in one frame you would just change the angle of the vector once a
second using a time like
on beginSprite me
pEndTime = the milliseconds + 1000
on exitFrame me
if the milliseconds >= pEndTime then
pEndTime = pEndTime + 1000
--change the rotation property of the vector here by 6 degrees (360
Word of Mouth Productions
"twheatlet" <email@example.com> wrote in message
> I want to make a sweeping second hand (analog clock). To do so, I
> want to animate one end of a short line while the other end is locked in
> That way I can sweep the line around just like a second hand. This seems
> relatively straightforward (in my head) but I can't figure out how to do
> Any suggestions would be greatly appreciated. Thanks!!!
Thanks for your help!
There's an Analog Clock behavior in the Controls panel of the Library Palette, which you can access via the menu item Window | Library Palette. You can drop this on a sprite to make it rotate once per minute (like a second hand), once per hour (like a minute hand), or once every twelve hours. It synchronizes with the internal clock on the user's machine.