Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Watch script

Bobby Dayton
Test Pilot for Airfix
Join date: 15 Nov 2003
Posts: 206
11-30-2007 04:15
I know there has been a few postings about watch/clock scripts. I am looking how to make one, or if anyone has the basis of one, that has a smooth second hand. I am a bit worried about the lag implications of a 1 second timer to increment the second hand.

Any help is much appreciated.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
11-30-2007 07:27
From: Bobby Dayton
I know there has been a few postings about watch/clock scripts. I am looking how to make one, or if anyone has the basis of one, that has a smooth second hand. I am a bit worried about the lag implications of a 1 second timer to increment the second hand.

Any help is much appreciated.

the fun part comes from realizing a second is not really a second, but is actually a dilated second.....

lazy method:
use texture animation to fake a working second hand, and just have it rotate at a set rate

simple method:
use the above, but occasionally set the texture relative to the time, and re-call the animation

accurate method:
plan a series of timed movements using llSleep or similar method, and then call multiple movements between each timer call... (may be just as if not more intense than a 1sec timer)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -